{{short description|Use of color-coded bandannas in the gay and BDSM communities}} thumb|An assortment of handkerchiefs {{LGBT symbols}}

The '''handkerchief code''' (also known as the '''hanky code''', the '''bandana code''', and '''flagging'''<ref name=Andrews2010 >{{cite book | last=Andrews | first=Vincent | year=2010 | title=The Leatherboy Handbook | publisher=The Nazca Plains Corp. | isbn=978-1-61098-046-3 }}</ref>) is a system of color-coded cloth handkerchiefs or bandanas for non-verbally communicating one's interests in sexual activities and fetishes. The color of the handkerchief identifies a particular activity, and the pocket it is worn in (left or right) identifies the wearer's preferred role in that activity. Wearing a handkerchief on the left side of the body typically indicates one is a "top" (considered ''active'' in the act or fetish indicated by the color of the handkerchief), while wearing it on the right side of the body would indicate one is a "bottom" (considered ''passive'' in it). For example, a dark blue handkerchief indicates an interest in anal sex, and wearing it in the left pocket indicates a preference for being the insertive partner. The code was most widely used in the 1970s in the United States, Canada, Australia, and Europe, by gay and bisexual men seeking casual sex, or BDSM practitioners.

==Origin== thumb|Hanky code

The wearing of colored bandanas around the neck as a practical accessory was common in the mid- and late-nineteenth century among cowboys, steam railroad engineers, and miners in the Western United States. It is thought that the wearing of bandanas by gay men originated in San Francisco after the Gold Rush, when, because of a shortage of women, men dancing with each other in square dances developed a code wherein the man wearing the blue bandana took the male part in the square dance, and the man wearing the red bandana took the female part (these bandanas were usually worn around the arm or hanging from the belt or in the back pocket of one's jeans).<ref name=":0">{{cite web |url=https://www.thesaintfoundation.org/community/hanky-code-bob-damrons-address-book |title=The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 |last=Kacala |first=Alexander |publisher=The Saint |date=April 25, 2019 |website=The Saint Foundation |access-date=March 30, 2021}}</ref>

The modern hanky code is often reported to have started in New York City around 1970, when a journalist for the ''Village Voice'' joked that instead of simply wearing a set of keys on one side or the other (then a common code to indicate whether someone was a "top" or a "bottom"), it would be more efficient to subtly announce their particular sexual focus by wearing different colored handkerchiefs.<ref>{{cite book |first1= Susan |last1= Stryker |author-link= Susan Stryker |first2= Jim |last2= Van Buskirk |title= Gay by the Bay: A History of Queer Culture in the San Francisco Bay Area |location= San Francisco |publisher= Chronicle Books |year= 1996 |page= 18 |isbn= 0-8118-1187-5}}</ref><ref>{{Cite web|last=Hsieh|first=Carina|date=2020-07-02|title=What Is the Hanky Code?|url=https://www.cosmopolitan.com/sex-love/a33078811/what-is-hanky-code-how-to-use/|access-date=2021-01-03|website=Cosmopolitan|language=en-US}}</ref><ref>{{Cite web|date=2019-04-23|title=Fifty Shades of Gay – The Hanky Code|url=https://www.ambushmag.com/fifty-shades-of-gay-the-hanky-code/|access-date=2021-01-03|website=Ambush Magazine|language=en-US}}</ref> Other sources attribute the expansion of the original red–blue system into today's code to marketing efforts around 1971 by The Trading Post, a San Francisco department store for erotic merchandise, promoting handkerchiefs by printing cards listing the meanings of various colors.<ref name="gay-semiotics">{{cite book |last=Fischer |first=Hal |date=1977 |title=Gay Semiotics ♂ |url=http://www.queerculturalcenter.org/Pages/HalPages/GaySempg2.html |location=San Francisco |publisher=NFS Press |isbn=0-917986-03-2 |quote=In San Francisco, the signs began appearing around 1971. The Trading Post, a department store specializing in erotic merchandise, began promoting handkerchiefs in the store and printing cards with their meanings. The red and blue handkerchiefs and their significance were already in existence, and meanings were assigned to other colors as well. |access-date=2017-06-23 |archive-date=2019-10-18 |archive-url=https://web.archive.org/web/20191018053832/http://www.queerculturalcenter.org/Pages/HalPages/GaySempg2.html |url-status=dead }}</ref>

Alan Selby, founder of Mr. S Leather in San Francisco, claimed that he created the first hanky code with his business partners at Leather 'n' Things in 1972, when their bandana supplier inadvertently doubled their order and the expanded code would help them sell the extra colors they had received.<ref name="selby">{{cite book|last=Jones|first=Jordy|date=2017|title=The Mayor of Folsom Street, The Auto/Biography of "Daddy Alan" Selby aka Mr. S|publisher=Fair Page Media LLC|isbn=978-0-9989098-0-6|pages=61–62}}</ref>

Around 1980, ''Bob Damron's Address Book'' published a yearly chart for the meaning of each colored handkerchief.<ref name=":0" /> thumb|Color Codes from ''Bob Damron's Address Book'' (1980)

==Examples==

There was no single authoritative standard for the code. This table is drawn from Larry Townsend's ''The Leatherman's Handbook II'' (the 1983 second edition; the 1972 first edition did not include this list) and is generally considered authoritative. Implicit in this list is the concept of left/right polarity, left as usual indicating the top, dominant, or active partner; right the bottom, submissive, or passive partner. Townsend noted that discussion with a prospective partner was still important because, people may wear a given color "only because the idea of the hankie turns them on" or "may not even know what it means".<ref>{{cite book |last=Townsend |first=Larry|title=The Leatherman's Handbook II |year=1983 |publisher=Modernismo Publications |location=New York |isbn=0-89237-010-6 |page=26}}</ref>

{| class="wikitable" ! Color ! Meaning |- | style="text-align:left" | {{color box|black}} Black || S&M |- | style="text-align:left" | {{color box|#160DCB}} Blue (Dark) || Anal sex |- | style="text-align:left" | {{color box|#99EEFF}} Blue (Light) || Oral sex |- | style="text-align:left" | {{color box|#964B00}} Brown || Scat |- | style="text-align:left" | {{color box|#4CBB17}} Green || Hustler/prostitution |- | style="text-align:left" | {{color box|grey}} Grey || Bondage |- | style="text-align:left" | {{color box|#FF7F00}} Orange || Anything goes |- | style="text-align:left" | {{color box|purple}} Purple || Piercing |- | style="text-align:left" | {{color box|red}} Red || Fisting |- | style="text-align:left" | {{color box|yellow}} Yellow || Watersports |}

The longer lists found on the web are more elaborate and the many color codes in them are less often used in practice, although some of these colors are offered for sale at LGBT stores along with free cards listing their meanings.

== Modern use == thumb|More modern hanky codes The hanky code has recently undergone a revival and while the use of handkerchiefs may not be as prevalent, the hanky colours are a common consideration in the choice of leather and fetish gear colour.<ref>{{Cite web|last=Networks|first=Hornet|date=2022-02-11|title=We’re Loving the Push to Revive the Hanky Code for a New Queer Population|url=https://hornet.com/stories/new-hanky-code/|access-date=2022-02-18|website=Hornet|language=en}}</ref> It should not, however, always be assumed this is the case and is best used as a conversation starter rather than a certain indication of sexual preferences.

The hanky code was a semiotic system of sexual advertising popular among the gay leather community of the United States<ref>{{Cite journal|title=The hankie code revisited: From function to fashion|last1=Reilly|first1=Andrew|last2=Saethre|first2=Eirik J.|date=2013-10-01|journal=Critical Studies in Men's Fashion|volume=1|pages=69–78|doi=10.1386/csmf.1.1.69_1|language=en}}</ref> and cruising scene more broadly. Social networking services may have replaced the use of hankies in cruising areas by digitizing the process. By using online platforms, men who have sex with men (MSM) can eliminate harassment and violence that they may face in public.<ref name=":1">{{Cite journal|last1=Filice|first1=Eric|last2=Raffoul|first2=Amanda|last3=Meyer|first3=Samantha B.|last4=Neiterman|first4=Elena|date=2019-07-05|title=The Impact of Social Media on Body Image Perceptions and Bodily Practices among Gay, Bisexual, and Other Men Who Have Sex with Men: A Critical Review of the Literature and Extension of Theory|journal=Sex Roles|volume=82|issue=7–8|pages=387–410|language=en|doi=10.1007/s11199-019-01063-7|s2cid=198629523|issn=1573-2762}}</ref> Social networking services for MSM also allow for sub-groups, and for people to list fetishes, and what they are looking for, which is where the replacement of the need for hankies may have come from.<ref name=":1" />

== See also == * Homosocialization

==References== {{reflist}}

==Further reading== {{Wiktionary}} *{{cite book |author-link= Trevor Jacques |last= Jacques |first= Trevor H. |title= On the Safe Edge: A Manual for SM Play |isbn= 978-1-89585-705-4 |location= Toronto |publisher= Whole SM Publishing |year= 1993}} {{commonscat}}

{{LGBT slang}}

Category:BDSM terminology Category:Color codes Category:Encodings Category:Leather subculture Category:LGBTQ symbols Category:LGBTQ terminology Category:Male homosexuality Category:Semiotics