Handkerchief code
The handkerchief code (also known as the hanky code, the bandana code, and flagging ) 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.
The handkerchief code (also known as the hanky code, the bandana code, and flagging ) 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== 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). 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. 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. 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. Around 1980, Bob Damron's Address Book published a yearly chart for the meaning of each colored handkerchief. ==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". 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. ==References== ==Further reading==
References
- The hankie code revisited: From function to fashion · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "The hankie code revisited: From function to fashion." Reilly, Andrew; Saethre, Eirik J. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "The hankie code revisited: From function to fashion." Reilly, Andrew; Saethre, Eirik J. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Reilly, Andrew; Saethre, Eirik J. (2026). The hankie code revisited: From function to fashion. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Stryker, Susan ; Van Buskirk, Jim (1996). Gay by the Bay: A History of Queer Culture in the San Francisco Bay Area . San Francisco: Chronicle Books . p. 18. ISBN 0-8118-1187-5 . Wikipedia revision 1364857261, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "Stryker, Susan ; Van Buskirk, Jim (1996). Gay by the Bay: A History of Queer Culture in the San Francisco Bay Area . San Francisco: Chronicle Books . p. 18. ISBN 0-8118-1187-5 . Wikipedia revision 1364857261, retrieved 2026-11-20." Stryker, Susan ; Van Buskirk, Jim (1996). 2026-11-19. https://en.wikipedia.org/wiki/Susan_Stryker. Accessed 24 November 2026.
Chicago "Stryker, Susan ; Van Buskirk, Jim (1996). Gay by the Bay: A History of Queer Culture in the San Francisco Bay Area . San Francisco: Chronicle Books . p. 18. ISBN 0-8118-1187-5 . Wikipedia revision 1364857261, retrieved 2026-11-20." Stryker, Susan ; Van Buskirk, Jim (1996). 2026-11-19. https://en.wikipedia.org/wiki/Susan_Stryker.
APA Stryker, Susan ; Van Buskirk, Jim (1996). (2026). Stryker, Susan ; Van Buskirk, Jim (1996). Gay by the Bay: A History of Queer Culture in the San Francisco Bay Area . San Francisco: Chronicle Books . p. 18. ISBN 0-8118-1187-5 . Wikipedia revision 1364857261, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Susan_Stryker
- What Is the Hanky Code? · retrieved 2021-01-02 · rev 1364857261
Cite this reference
MLA "What Is the Hanky Code?." Hsieh, Carina (2020-07-02). 2021-01-02. https://www.cosmopolitan.com/sex-love/a33078811/what-is-hanky-code-how-to-use/. Accessed 24 November 2026.
Chicago "What Is the Hanky Code?." Hsieh, Carina (2020-07-02). 2021-01-02. https://www.cosmopolitan.com/sex-love/a33078811/what-is-hanky-code-how-to-use/.
APA Hsieh, Carina (2020-07-02). (2021). What Is the Hanky Code?. Retrieved November 24, 2026, from https://www.cosmopolitan.com/sex-love/a33078811/what-is-hanky-code-how-to-use/
- Fifty Shades of Gay – The Hanky Code · retrieved 2021-01-02 · rev 1364857261
Cite this reference
MLA "Fifty Shades of Gay – The Hanky Code." 2021-01-02. https://www.ambushmag.com/fifty-shades-of-gay-the-hanky-code/. Accessed 24 November 2026.
Chicago "Fifty Shades of Gay – The Hanky Code." 2021-01-02. https://www.ambushmag.com/fifty-shades-of-gay-the-hanky-code/.
APA encyclopegia.org. (2021). Fifty Shades of Gay – The Hanky Code. Retrieved November 24, 2026, from https://www.ambushmag.com/fifty-shades-of-gay-the-hanky-code/
- Townsend, Larry (1983). The Leatherman's Handbook II . New York: Modernismo Publications. p. 26. ISBN 0-89237-010-6 . Wikipedia revision 1364857261, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "Townsend, Larry (1983). The Leatherman's Handbook II . New York: Modernismo Publications. p. 26. ISBN 0-89237-010-6 . Wikipedia revision 1364857261, retrieved 2026-11-20." Townsend, Larry (1983). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Townsend, Larry (1983). The Leatherman's Handbook II . New York: Modernismo Publications. p. 26. ISBN 0-89237-010-6 . Wikipedia revision 1364857261, retrieved 2026-11-20." Townsend, Larry (1983). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Townsend, Larry (1983). (2026). Townsend, Larry (1983). The Leatherman's Handbook II . New York: Modernismo Publications. p. 26. ISBN 0-89237-010-6 . Wikipedia revision 1364857261, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- We're Loving the Push to Revive the Hanky Code for a New Queer Population · retrieved 2022-02-17 · rev 1364857261
Cite this reference
MLA "We're Loving the Push to Revive the Hanky Code for a New Queer Population." Networks, Hornet (2022-02-11). 2022-02-17. https://hornet.com/stories/new-hanky-code/. Accessed 24 November 2026.
Chicago "We're Loving the Push to Revive the Hanky Code for a New Queer Population." Networks, Hornet (2022-02-11). 2022-02-17. https://hornet.com/stories/new-hanky-code/.
APA Networks, Hornet (2022-02-11). (2022). We're Loving the Push to Revive the Hanky Code for a New Queer Population. Retrieved November 24, 2026, from https://hornet.com/stories/new-hanky-code/
- The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980." a b Kacala, Alexander (April 25, 2019). 2026-11-19. https://www.thesaintfoundation.org/community/hanky-code-bob-damrons-address-book. Accessed 24 November 2026.
Chicago "The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980." a b Kacala, Alexander (April 25, 2019). 2026-11-19. https://www.thesaintfoundation.org/community/hanky-code-bob-damrons-address-book.
APA a b Kacala, Alexander (April 25, 2019). (2026). The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980. Retrieved November 24, 2026, from https://www.thesaintfoundation.org/community/hanky-code-bob-damrons-address-book
- a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B.; Neiterman, Elena (2019-07-05). "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". Sex Roles . 82 ( 7– 8): 387– 410. doi : 10.1007/s11199-019-01063-7 . ISSN 1573-2762 . S2CID 198629523 . Wikipedia revision 1364857261, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B.; Neiterman, Elena (2019-07-05). "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". Sex Roles . 82 ( 7– 8): 387– 410. doi : 10.1007/s11199-019-01063-7 . ISSN 1573-2762 . S2CID 198629523 . Wikipedia revision 1364857261, retrieved 2026-11-20." a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B.; Neiterman, Elena (2019-07-05). "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". Sex Roles . 82 ( 7– 8): 387– 410. doi : 10.1007/s11199-019-01063-7 . ISSN 1573-2762 . S2CID 198629523 . Wikipedia revision 1364857261, retrieved 2026-11-20." a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier).
APA a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B. (2026). a b Filice, Eric; Raffoul, Amanda; Meyer, Samantha B.; Neiterman, Elena (2019-07-05). "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". Sex Roles . 82 ( 7– 8): 387– 410. doi : 10.1007/s11199-019-01063-7 . ISSN 1573-2762 . S2CID 198629523 . Wikipedia revision 1364857261, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Andrews, Vincent (2010). The Leatherboy Handbook . The Nazca Plains Corp. ISBN 978-1-61098-046-3 . Wikipedia revision 1364857261, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "Andrews, Vincent (2010). The Leatherboy Handbook . The Nazca Plains Corp. ISBN 978-1-61098-046-3 . Wikipedia revision 1364857261, retrieved 2026-11-20." Andrews, Vincent (2010). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Andrews, Vincent (2010). The Leatherboy Handbook . The Nazca Plains Corp. ISBN 978-1-61098-046-3 . Wikipedia revision 1364857261, retrieved 2026-11-20." Andrews, Vincent (2010). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Andrews, Vincent (2010). (2026). Andrews, Vincent (2010). The Leatherboy Handbook . The Nazca Plains Corp. ISBN 978-1-61098-046-3 . Wikipedia revision 1364857261, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Fischer, Hal (1977). Gay Semiotics ♂ . San Francisco: NFS Press. ISBN 0-917986-03-2 . Archived from the original on 2019-10-18 . Retrieved 2017-06-23 . 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. Wikipedia revision 1364857261, retrieved 2026-11-20 · retrieved 2017-06-22 · rev 1364857261
Cite this reference
MLA "Fischer, Hal (1977). Gay Semiotics ♂ . San Francisco: NFS Press. ISBN 0-917986-03-2 . Archived from the original on 2019-10-18 . Retrieved 2017-06-23 . 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. Wikipedia revision 1364857261, retrieved 2026-11-20." Fischer, Hal (1977). 2017-06-22. https://web.archive.org/web/20191018053832/http://www.queerculturalcenter.org/Pages/HalPages/GaySempg2.html. Accessed 24 November 2026.
Chicago "Fischer, Hal (1977). Gay Semiotics ♂ . San Francisco: NFS Press. ISBN 0-917986-03-2 . Archived from the original on 2019-10-18 . Retrieved 2017-06-23 . 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. Wikipedia revision 1364857261, retrieved 2026-11-20." Fischer, Hal (1977). 2017-06-22. https://web.archive.org/web/20191018053832/http://www.queerculturalcenter.org/Pages/HalPages/GaySempg2.html.
APA Fischer, Hal (1977). (2017). Fischer, Hal (1977). Gay Semiotics ♂ . San Francisco: NFS Press. ISBN 0-917986-03-2 . Archived from the original on 2019-10-18 . Retrieved 2017-06-23 . 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. Wikipedia revision 1364857261, retrieved 2026-11-20. Retrieved November 24, 2026, from https://web.archive.org/web/20191018053832/http://www.queerculturalcenter.org/Pages/HalPages/GaySempg2.html
- Daddy Alan · retrieved 2026-11-19 · rev 1364857261
Cite this reference
MLA "Daddy Alan." Jones, Jordy (2017). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Daddy Alan." Jones, Jordy (2017). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Jones, Jordy (2017). (2026). Daddy Alan. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Kacala, Alex. The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 . · retrieved 2026-07-17 · rev 1364857261
Cite this reference
MLA "Kacala, Alex. The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 ." Kacala, Alex. 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261. Accessed 24 November 2026.
Chicago "Kacala, Alex. The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 ." Kacala, Alex. 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261.
APA Kacala, Alex. (2026). Kacala, Alex. The Handkerchief Code, According to 'Bob Damron's Address Book' in 1980 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364857261
- What Is the Hanky Code? . · retrieved 2026-07-17 · rev 1364857261
Cite this reference
MLA "What Is the Hanky Code? ." 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261. Accessed 24 November 2026.
Chicago "What Is the Hanky Code? ." 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261.
APA encyclopegia.org. (2026). What Is the Hanky Code? . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364857261
- Fifty Shades of Gay – The Hanky Code . Ambush Magazine . 2019-04-23. retrieved 2021-01-03 · retrieved 2021-01-02 · rev 1364857261
Cite this reference
MLA "Fifty Shades of Gay – The Hanky Code . Ambush Magazine . 2019-04-23. retrieved 2021-01-03." Fifty Shades of Gay – The Hanky Code. 2021-01-02. https://en.wikipedia.org/w/index.php?oldid=1364857261. Accessed 24 November 2026.
Chicago "Fifty Shades of Gay – The Hanky Code . Ambush Magazine . 2019-04-23. retrieved 2021-01-03." Fifty Shades of Gay – The Hanky Code. 2021-01-02. https://en.wikipedia.org/w/index.php?oldid=1364857261.
APA Fifty Shades of Gay – The Hanky Code. (2021). Fifty Shades of Gay – The Hanky Code . Ambush Magazine . 2019-04-23. retrieved 2021-01-03. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364857261
- Fischer, Hal. Gay Semiotics ♂ . NFS Press . 1977. · retrieved 2026-07-17 · rev 1364857261
Cite this reference
MLA "Fischer, Hal. Gay Semiotics ♂ . NFS Press . 1977." Fischer, Hal. 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261. Accessed 24 November 2026.
Chicago "Fischer, Hal. Gay Semiotics ♂ . NFS Press . 1977." Fischer, Hal. 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261.
APA Fischer, Hal. (2026). Fischer, Hal. Gay Semiotics ♂ . NFS Press . 1977. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364857261
- We’re Loving the Push to Revive the Hanky Code for a New Queer Population . · retrieved 2026-07-17 · rev 1364857261
Cite this reference
MLA "We’re Loving the Push to Revive the Hanky Code for a New Queer Population ." 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261. Accessed 24 November 2026.
Chicago "We’re Loving the Push to Revive the Hanky Code for a New Queer Population ." 2026-07-17. https://en.wikipedia.org/w/index.php?oldid=1364857261.
APA encyclopegia.org. (2026). We’re Loving the Push to Revive the Hanky Code for a New Queer Population . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364857261
Cite this article
MLA
"Handkerchief code." encyclopegia.org, 2026, https://encyclopegia.org/wiki/handkerchief-code. Accessed 24 November 2026.
Chicago
"Handkerchief code." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/handkerchief-code.
APA
encyclopegia.org. (2026). Handkerchief code. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/handkerchief-code
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON