Hanky Code: History, Meaning, and the Semiotics of Leather Culture
- 12 hours ago
- 4 min read
Before dating apps.
Before online profiles.
Before explicit language became normalized in public discourse.
There was color.
The Hanky Code — also known as the handkerchief code, bandana code, or simply flagging — is one of the most iconic signaling systems in queer history. Emerging from leather and gay male subcultures in the United States, it became a discreet but powerful way to communicate desire, preference, and role.
More than a curiosity, the Hanky Code represents a sophisticated semiotic system — a visual language built around identity, power dynamics, and negotiated desire.

The Origins of the Hanky Code
From the American West to Urban Queer Culture
The cultural roots of the Hanky Code are often traced back to the American West in the mid-to-late 19th century.
Cowboy Bandanas and Gender Signaling
After the California Gold Rush, San Francisco experienced a severe shortage of women. In social settings such as square dances, men often danced with other men. According to popular accounts, bandanas were used to indicate dance roles:
Blue bandana → leading role
Red bandana → following role
These bandanas were worn around the neck, arm, or hanging from a belt — a practical garment evolving into coded signaling.
While historians debate the extent of this early usage, the narrative reveals something important: Clothing has long functioned as a marker of social and sexual roles.
The Modern Hanky Code: New York, 1970–1971
The contemporary Hanky Code emerged in New York City in the early 1970s, during a moment of intense queer liberation following the Stonewall uprising (1969).
Leather bars, cruising spaces, and bathhouses were expanding rapidly. Within these environments, efficiency of communication became essential.
Why It Developed
The Hanky Code solved several problems:
Allowed discreet signaling in public spaces
Reduced awkward or risky verbal negotiation
Clarified dominant/submissive roles
Expressed fetish interests without explicit conversation
The system became standardized:
Left pocket → Top / Dominant / Active role
Right pocket → Bottom / Submissive / Receptive role
This left/right distinction remains central to flagging culture.
How the Hanky Code Works
The Logic of Color and Position
The Hanky Code operates through two main variables:
Color → Indicates specific interest or fetish
Pocket side → Indicates role preference
This binary structure created a flexible but structured matrix of meanings.
Core Colors and Their Traditional Meanings
Below are some of the most recognizable and historically popular Hanky Code colors.

Black
Left: Heavy SM top
Right: Heavy SM bottom
Associated with intensity, dominance, and structured power exchange.
Red
Left: Fisting top
Right: Fisting bottom
Red symbolized intensity and extremity within leather culture.
Dark Blue (Navy)
Left: Penetrative top
Right: Receptive bottom
One of the most commonly seen colors in leather bars.
Yellow
Left: Water sports top
Right: Water sports bottom
Yellow became shorthand for a specific fetish dynamic.
Grey
Left: Bondage top
Right: “Fit to be tied”
Grey signified restraint and rope-based dynamics.
White
Left: Mutual self-pleasure
Right: Reciprocal participation
White was often considered one of the more accessible and less niche signals.
The Extended Color System
As leather culture expanded, the Hanky Code evolved into an extensive matrix including:
Teal
Kelly green
Olive drab
Beige
Lavender
Mustard
Paisley
Charcoal
Leopard
Houndstooth
Tartan
Some indicated specific kinks.Others referenced identities, clothing preferences, or subcultural affiliations.
Beyond Color: Fabric & Pattern
The code expanded to include:
Lace
Corduroy
Velvet
Gingham
Polka dots
Stripes
This layering of meaning transformed the Hanky Code into a living cultural archive.

Semiotics, Power, and Queer Architecture
The Hanky Code is more than a fetish list.
It is a semiotic system — a way of encoding identity through textile.
Clothing as Language
Flagging transforms:
The back pocket into a message board
The body into a declaration
The bar into a communication grid
In this sense, the Hanky Code is architectural. It reorganizes space through shared understanding.
The Role of Consent
The Hanky Code does not replace consent.
It facilitates conversation.
Color indicates interest — not entitlement.
The system works only within:
Shared literacy
Mutual respect
Negotiated boundaries
Frameworks like SSC, RACK, PRICK, and CCC evolved alongside this culture, reinforcing that signaling is only the first step.
Controversies and Cultural Shifts
Race and Problematic Codifications
Some historical entries referenced racial preferences through striped or dotted bandanas. Today, these elements are widely criticized and often rejected.
The Hanky Code reflects the cultural moment in which it developed — including its limitations.
The Impact of Technology
Dating apps reduced the practical necessity of visual coding.Yet the Hanky Code persists as:
Historical heritage
Visual identity marker
Aesthetic reference in fashion and art
In cities like Berlin, San Francisco, and New York, flagging still appears in leather spaces.
Hanky Code Today
Symbol or Practice?
For many, it functions symbolically — a nod to lineage.
For others, especially within traditional leather communities, it remains active communication.
Why It Endures
Because it represents:
Autonomy
Transparency
Structured desire
Queer ingenuity
It emerged when explicit speech was dangerous.
It thrived because visibility was radical.
Conclusion: A Language of Desire
The Hanky Code is not merely nostalgic fetish trivia.
It is:
A survival strategy
A cultural invention
A textile-based semiotic system
A chapter of queer resistance
To understand leather culture without understanding the Hanky Code is to miss one of its foundational grammars. In the architecture of desire, color became language. A language became freedom.
Written by Otávio Santiago
Founder of Atomique Fetish, editorial platform on fetish design
Cultural design & research









Comments