"Hanky code" or scarves instead of words: how gay men secretly communicated their sexual desires during Prohibition
Straight friendly
Source: Adobe Stock/ Se svolením

"Hanky code" or scarves instead of words: how gay men secretly communicated their sexual desires during Prohibition

Imagine if you couldn't openly ask someone what they like in bed. That sex would be grounds for arrest. It was out of such a reality that the hanky code was born - a color code that gay men used to secretly communicate their sexual preferences.
Šimon Hauser Šimon Hauser Author
7. 1. 2026

If you've ever visited a historic gay bar, a queer leather archive, or just wandered into the deeper layers of LGBTQ+ history, you may have noticed a subtle accessory that at first glance seems almost banal: a colorful scarf peeking out of the back pocket of your jeans. A stylish detail for the uninitiated, a sophisticated tongue for the initiated. The so-called hanky code is one of the most iconic but least understood chapters of queer history. And above all: it was born out of a necessity to survive.

Today, in an era of more open coming out, dating apps, and queer aesthetics as part of the mainstream, it can feel like a cute historical artifact. But in the 60s, 70s and 80s, the handkerchief was often the only safe way to signal desire, identity and boundaries to the world - or rather, to the right people.

<Path> „Hanky code“ aneb teplá šátkomluva: Necudnosti, které si gayové tajně sdělovali (a stále sdělují) barevnými kapesníkyZdroj: leatherpedia.org, thesaintfoundation.com, historyproject.org, gaydesertguide.com

When silence was a matter of safety

As recently as the second half of the 20th century, queer sex was still a crime in many countries - including the United States. State laws against sodomy allowed police to arrest people on the mere suggestion that they might have had homosexual intercourse. Two men who walked into a hotel together risked questioning. Touching hands in public could spell trouble. Open conversation about desire was out of the question.

Queer intimacy therefore moved into the shadows - into parks, on the waterfront, in public toilets, subway stations or abandoned industrial areas. It was here that the culture of cruising places developed - and with it the need for quick, quiet and above all unobtrusive communication. In these spaces, it was impossible to simply talk. Hanky code was a way of saying: this is what I'm looking for, without saying a word.

<Path> Muži prošli za 18 let zásadní proměnou. Giorgio Armani proto mění ikonický parfém Armani Code, jeho novou tváří je Regé-Jean PageZdroj: Giorgio Armani

Colors instead of sentences

The principle was simple but surprisingly sophisticated. The color of the scarf indicated a particular sexual interest or fetish, while its placement in the left or right pocket signaled the preferred role - active or passive, dominant or submissive. The left pocket usually signified "active", the right "passive". Those who knew the code could "read" the other person in seconds.

A red scarf could indicate an interest in fisting, dark blue anal sex, light blue oral practices, black sadomasochistic play, yellow pissing and brown scat. A shocking openness, perhaps, from today's perspective, but a radically liberating gesture in its time: sexuality was not classified as 'normal' and 'weird', everything stood side by side.

It is important to add that the hanky code never replaced consent. It was an invitation to conversation, not an automatic contract. Even in an environment where meetings were often quick and anonymous, communication remained key.

Leather cities and the visual language of desire

The rise of the hanky code is inextricably linked to the 1970s and the urban leather scene - particularly in San Francisco and Los Angeles. After World War II, part of gay male culture was shaped around biker clubs, leather bars and BDSM communities. Clothing was not just a fashion, but a communication tool.

A precursor to the handkerchief code, for example, were keys worn on the left or right loop of jeans - these too signalled a role in a sexual encounter. The hanky code extended and refined this visual language. One of the first printed sources to systematize the code was the Leatherman's Handbook, now considered the bible of the leather subculture.

At the same time, there has never been an "official" list. Meanings varied by city, club and community. What was true in San Francisco was not necessarily true in New York. And that was precisely the power of the code: it was alive, fluid, and community-shaped.

Lesbians, drag queens and queer creativity

Hanky code was not exclusively a male thing. Lesbian communities created their own variations that reflected different desires, roles and aesthetics. One of the earliest recorded versions of the lesbian hanky code can be found in 1984 in the erotic magazine On Our Backs. Colours such as lavender for drag queens and their admirers, purple associated with piercings or needle play, and lacy white for Victorian erotic scenarios appear here.

The absence of a central authority meant one thing: everyone could add another shade, another meaning. And that's exactly what the queer community did. The hanky code became a decentralized archive of desire.

Then, in the 1990s, the hanky code took on a new, very serious dimension. At the height of the HIV/AIDS epidemic, black-and-white headscarves appeared, signaling an emphasis on safer sex. Here again, it turns out that the hanky code was not just about sex, but also about care, responsibility and mutual respect.

Today, wearing a headscarf in the back pocket is the exception rather than the rule. The reasons are obvious: the decline of cruising spots, the closing of queer bars, the massive surveillance of public spaces and the shift of dating to the digital sphere. What used to be solved by the colour of the fabric is now catered for by the profile on the app.

But at the same time, the hanky code is making a comeback - as a cultural reference, fashion statement or educational content on platforms like TikTok and Instagram. Colored scarves appear in videos, archives, and runway shows as a symbol of a time when queer people had to be constantly one step ahead.

Tipy redakce

Why it still matters

The Hanky Code is not just a list of sexual practices, but a reminder of queer ingenuity, solidarity, and courage. It reflects the sex-positive, non-judgmental approach to desire that queer, leather and kinky communities have long fostered, often in the face of mainstream puritanical society.

By placing "vanilla" practices alongside those considered extreme, it helped to break down stigma and normalize diversity. He taught queer people to speak up about what they wanted, even when it wasn't safe to speak up.

So the question in conclusion may not be whether you should put a scarf in your pocket today, but rather how much history, courage, and desire can be hidden in one inconspicuous piece of fabric? And are we even aware of the sophisticated languages the queer community has had to create in order to be itself?

Source: medium.com, wikipedia.org

Popular
articles

Poslankyně Barbora Pipášová se dlouhodobě věnuje tématům duševního zdraví, vzdělávání a prevence, která přenáší i do své práce v Poslanecké sněmovně.
PEOPLE

"The atmosphere in the Chamber of Deputies has thickened considerably," says Barbora Pipášová, a new MP for the Pirates, who openly describes her first months in Czech politics

Author: Šimon Hauser
Radek David věří, že dnešní gastronomie stojí především na hluboké autenticitě, znalosti a schopnosti vyprávět příběh skrze jídlo
LUI Trendy & Styl 2026

"Locality and biodiversity are no longer a trend, but the standard," says chef Radek David, who attended the prestigious Madrid Fusión World Congress

Author: Šimon Hauser
Barevný průvod hrdosti zaplňuje ulice španělských měst a spojuje místní i návštěvníky z celého světa
LUI Trendy & Styl 2026

Where to this year for sun, freedom and pride? The Complete Guide to Pride Festivals in Spain 2026

Author: Šimon Hauser
Film Neříkejte mi dědo se dotýká nadčasových témat lásky, empatie a ochoty přehodnotit rodinné vztahy
CULTURE

Having a gay dad and raising a non-binary teenager? The film drama Don't Call Me Grandpa was (partly) written by life itself

Author: Veronika Košťálková
Ilustrační foto: Příběhy queer rodičovství mají mnoho podob – někdy za nimi stojí i přátelství a důvěra mezi lidmi, kteří se rozhodnou společně vytvořit rodinu.
PEOPLE

"I wanted my baby to have two loving moms," says gay man who decided to donate sperm to his girlfriends

Author: Šimon Hauser
Mnoho lidí si otázku vlastní sexuální orientace začne klást ve chvíli, kdy si poprvé uvědomí, kdo je skutečně přitahuje – často během dospívání nebo prvních zkušeností s randěním.
BODY & MIND

How to tell if you are gay, straight or bisexual? Forget stereotypes about voice, clothes and "femininity"

Author: Šimon Hauser
Snažit se brzy po ránu snídat za každou cenu extra smysl nemá
LUI Trendy & Styl 2026

Breakfast under the lens of longevity: should you eat breakfast? And if so, when exactly and what?

Author: Mirka Dobešová
Debata o genderových rolích a rovnosti mezi muži a ženami se v posledních letech znovu vyostřuje, a to zejména mezi mladou generací.
TRENDS

Do we still need feminism? New Ipsos survey shows we're a long way from abandoning traditional gender roles

Author: Elizaveta Kharchenko
Na seznamovacích aplikacích se často objevují věty typu „masculine only“ nebo „no fems“, které odrážejí silný důraz na maskulinitu mezi částí gay mužů.
BODY & MIND

"I'm not into effeminate boys." Why feminine men are often the target of prejudice even among gay men themselves

Author: Šimon Hauser
Dětství může navenek vypadat stejně — rozdíly se často odehrávají v tichých, každodenních momentech.
TRENDS

5 things a gay child experiences differently from his classmates. What straight parents often don't see at all?

Author: Šimon Hauser

E-Shop