Hanky Code: History, Meaning, and the Semiotics of Leather Culture
- Feb 20
- 7 min read
Updated: Apr 30
Before the emergence of digital platforms, before identity could be articulated through profiles, filters, and explicit categories, systems of desire relied on far more discreet forms of communication, often embedded within clothing, gesture, and shared subcultural knowledge. Among the most enduring of these systems is the Hanky Code, a method of visual signaling that transformed color and placement into a structured language of erotic preference and social role.
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
Within this system, certain colors became widely recognized markers of specific practices, forming a shared vocabulary across leather spaces. Black, for instance, was associated with heavier sadomasochistic dynamics, signaling either dominance or submission depending on its placement, while red indicated a preference for more extreme forms of bodily engagement. Dark blue emerged as one of the most common signals, denoting penetrative roles and becoming a staple within bar culture. Yellow, by contrast, pointed toward more niche interests, while grey suggested an affinity for bondage and restraint, emphasizing the aesthetic and physical dimensions of tying rather than purely functional constraint.

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.
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 site of communication, where a simple piece of fabric operates as a visible signal rather than an accessory. In doing so, it turns the body itself into a form of declaration, one that articulates preference, role, and intention without the need for speech. Within the shared space of the bar, these individual signals accumulate into a larger system, creating a kind of communication grid through which participants can read and respond to one another.
In this sense, the Hanky Code functions architecturally, not by constructing physical structures, but by reorganizing space through a sh
The Role of Consent
The Hanky Code does not replace consent; rather, it creates the conditions through which conversation can begin. The presence of a color signals interest, not entitlement, and any meaning it carries depends entirely on how it is received, interpreted, and negotiated between individuals.
For the system to function, it requires a shared literacy, where participants understand the codes being used, as well as a foundation of mutual respect that recognizes the autonomy of each person involved. Within this framework, boundaries are not assumed but actively established, with signaling serving only as an initial point of contact rather than a conclusion.
The development of consent models such as SSC, RACK, PRICK, and CCC reflects this same logic, reinforcing that visibility and communication are only the first layer of interaction, and that all meaningful engagement depends on explicit negotiation beyond the signal itself.
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
The rise of dating apps and digital platforms has significantly reduced the practical need for systems of visual coding, allowing preferences, roles, and desires to be communicated instantly and explicitly through profiles and direct messaging. Despite this shift, the Hanky Code has not disappeared, but instead persists in a different form, operating less as a necessity and more as a cultural artifact that continues to carry meaning.
It remains present as a form of historical heritage, a reminder of the conditions under which queer communities developed systems of visibility under constraint, while also functioning as a visual identity marker that signals affiliation, knowledge, and continuity. At the same time, its aesthetic has been absorbed into fashion, photography, and contemporary visual culture, where it is referenced, reinterpreted, and stylized beyond its original context.
In cities such as Berlin, San Francisco, and New York, flagging still appears within leather spaces, not always as a primary mode of communication, but as a persistent gesture that connects present practices to their historical foundations.
The Architecture Behind the Code
The Hanky Code today exists in a state of dual function, operating simultaneously as both symbol and practice, depending on the context in which it appears. For some, it functions primarily as a gesture of continuity, a visual reference that acknowledges lineage and situates the wearer within a broader historical narrative of queer expression. For others, particularly within more traditional leather communities, it remains an active and legible system of communication, still capable of signaling preference, role, and intention within shared spaces.
Its persistence is not accidental, nor purely nostalgic, but tied to the values it encodes and the conditions under which it first emerged. The system reflects a commitment to autonomy, allowing individuals to articulate desire on their own terms, while also emphasizing transparency and the structured organization of erotic identity. At the same time, it embodies a form of queer ingenuity, demonstrating how complex systems of meaning can develop under constraint, transforming limitation into a form of expression.
The Hanky Code originated in a moment when explicit language carried risk, and when visibility itself could provoke danger, yet it continued to evolve precisely because that visibility held power. What began as a practical solution to the problem of communication became something more enduring, a framework through which desire could be externalized, recognized, and negotiated without the need for direct articulation.
To reduce it to a relic or a curiosity is to overlook its deeper function. It operates as a survival strategy, a cultural invention, and a textile-based semiotic system that encodes relationships between identity, power, and space. It also remains a significant chapter within the broader history of queer resistance, marking a period in which visibility was not given, but constructed through shared codes and collective understanding.
To approach leather culture without engaging with the Hanky Code is therefore to miss one of its foundational grammars. Within this system, color does not simply decorate the body, but transforms into language, and through that language, a form of freedom becomes possible.
The left/right signaling system reflects foundational dynamics of Dominance and Submission, where roles are communicated before physical interaction begins. Its color-coded matrix parallels the structured logic of Power Exchange, where desire is organized rather than improvised.
Many of the practices signaled through the Hanky Code — including Sadomasochism, Bondage, Fisting, and Water Sports — are not random preferences, but historically situated forms of erotic ritual. Each carries its own lineage, psychological dimension, and consent framework.
Even the spatial logic of flagging — the bar as coded environment, the body as message surface — anticipates the architectural structure of the Dungeon, where visibility, access, and negotiation intersect.
To understand the Hanky Code is not simply to decode a list of colors, but to recognize a system through which desire was made visible under conditions where visibility itself carried risk. What appears, at first glance, as a simple code reveals a far more complex structure, one in which identity, power, and negotiation are embedded directly into the surface of the body.
Within this framework, fetish culture does not emerge as disorder or excess, but as an organized language, shaped by necessity and sustained through collective recognition. The persistence of the Hanky Code, even in altered or symbolic forms, suggests that its function extends beyond practicality, operating instead as a foundational grammar through which queer desire has been articulated, shared, and preserved.
Written by Otávio Santiago
Founder of Atomique Fetish, editorial platform on fetish design
Cultural design & research



Comments