Walk into a bar in 1975. Nobody introduces themselves, nobody asks anything out loud. But a coloured handkerchief in a back pocket tells you what the person across the room is looking for, and which side it hangs on tells you how they want it.
That was the hanky code: a language built out of cotton squares, invented because saying the same thing in words could cost you your job, your family or your safety.

Where the hanky code came from
It took shape in the United States in the early 1970s, in the gay bar and leather scenes of San Francisco and New York. At the time homosexuality was still criminalised in most states, and being identified could mean arrest, dismissal or violence. Any signal that worked had to be invisible to everyone who wasn't looking for it.
A handkerchief solved that neatly. Everyone carried one. Nobody outside the scene read anything into the colour.

How the code actually worked
Two pieces of information, carried at once.
The colour said what you were interested in. The pocket said which role you wanted: left for the active or giving side, right for the passive or receiving side. Same handkerchief, opposite meaning, decided by which hip it hung from.
That doubling is what made such a small object carry so much. Twenty colours became forty signals.

The colours and what they meant
These are the most widely recognised. Printed charts of the era ran to dozens more, and the meanings drifted from city to city, which was part of the fun and occasionally part of the confusion.
| Colour | Commonly meant |
|---|---|
| Light blue | Oral sex |
| Dark blue | Anal sex |
| Red | Fisting |
| Black | Heavy BDSM and S&M |
| Grey | Bondage |
| Yellow | Watersports |
| Brown | Scat |
| White | Masturbation |
| Purple | Piercing |
| Green | Hustling, paying or being paid |
| Orange | Anything, anytime |
Orange is the one worth pausing on. In a system built on precision, one colour existed to say the opposite: no preference, ask me.

Colour as identity, beyond the hanky
The hanky code was the most literal use of colour as a signal, but it was not the only one.
The rainbow flag
Gilbert Baker sewed the first rainbow flags in San Francisco in 1978, at the urging of Harvey Milk, and they flew at Gay Freedom Day that June. The original had eight stripes, each with a meaning: hot pink for sexuality, red for life, orange for healing, yellow for sun, green for nature, turquoise for art, indigo for harmony, violet for spirit.
Hot pink and turquoise were dropped soon afterwards because the fabric was hard to source in quantity, and indigo became plain blue. That is how eight stripes became the six everyone knows.
The flag was the hanky code inverted. Where the handkerchief hid a message in plain sight, the flag made the message the entire point.

Black and the leather community
Through the 1980s and 1990s black became the marker of leather and BDSM culture: jackets, harnesses, boots, caps. It read as power and control, and unlike a handkerchief it was not subtle, which by then was the point.
That code is still legible. A black leather piece or a body harness says something about intent before anyone speaks, in exactly the way a dark handkerchief once did.

Pastels and the femboy aesthetic
More recently, soft colours have done the opposite work. Pink, lavender and baby blue signal softness rather than dominance, and a deliberate step away from how men are expected to dress. It is the same mechanism as the hanky code, pointed somewhere else entirely: a colour chosen so the people who understand it will understand it.
Most of our femboy lingerie lives in that palette for the same reason.

Why colour worked so well
It was safe. A colour communicates to the people who have the key and stays invisible to everyone else. When being understood by the wrong person was dangerous, that mattered more than anything.
It was a choice. Picking a colour meant placing yourself: this scene, this role, this way of being read.
It was erotic on its own. Part of the appeal was never the information. It was the fact that a room full of people were all quietly reading each other.
The hanky code today
Fewer people carry handkerchiefs now, because fewer people need to. Dating apps ask directly what a pocket once implied.
But the colours never went away, they moved. You still see them in fetish clubs and at leather events, and the underlying habit is everywhere in how people dress for a night out: black for intent, neon for a rave floor, pastel for softness. Our guide to what to wear to Berghain is about reading exactly this kind of signal, seventy years on and in a different city.

If you want the practical version rather than the history, our men's harness guide covers the piece that carries most of this meaning today, and the complete guide to femboy lingerie covers the softer end of it.
