We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.

What is the Hanky Code?

Mary McMahon
Updated May 23, 2024
Our promise to you
PublicPeople is dedicated to creating trustworthy, high-quality content that always prioritizes transparency, integrity, and inclusivity above all else. Our ensure that our content creation and review process includes rigorous fact-checking, evidence-based, and continual updates to ensure accuracy and reliability.

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

Editorial Standards

At PublicPeople, we are committed to creating content that you can trust. Our editorial process is designed to ensure that every piece of content we publish is accurate, reliable, and informative.

Our team of experienced writers and editors follows a strict set of guidelines to ensure the highest quality content. We conduct thorough research, fact-check all information, and rely on credible sources to back up our claims. Our content is reviewed by subject-matter experts to ensure accuracy and clarity.

We believe in transparency and maintain editorial independence from our advertisers. Our team does not receive direct compensation from advertisers, allowing us to create unbiased content that prioritizes your interests.

The hanky code is a signaling system used by gay men and members of the fetish and BDSM communities to indicate sexual preference. Signals are conveyed by wearing a handkerchief of a specific color or pattern in either the right or left back pocket, conveying preference to anyone in the vicinity. While wearing a hanky, someone is said to be flagging, and the code is known as flagging, the bandanna code, or the handkerchief code.

Some people have suggested that the basics of the hanky code may go as far back to the 1800s, when men in isolated regions of the American West would wear red handkerchiefs to indicate that they were willing to take a woman's role in a dance. However, this is probably apocryphal, and has never been verified. More solidly, the seeds for the code appear to have been sown in the 1970s, when gay men first started wearing handkerchiefs according to guidelines published in The Village Voice, a newspaper in New York City.

There are a number of advantages to the hanky code which explain why it endures to this day. In the 1970s, when the gay community was less outspoken, the code allowed gay men to communicate with each other without attracting attention, and allowed men to more easily scope out potential dates. In communities where it was prevalent, men knew that pursuing men who weren't flagging could be risky, and they could seek out partners on the basis of preference by checking their back pockets.

This code also turned out to be handy in crowded environments like gay bars, where the noise and crowd could make it hard to establish a connection with someone. As the hanky code spread in the gay community, it began to be picked up more generally in the fetish and BDSM communities, and complex permutations of colors, patterns, and placements began to proliferate.

As a general rule, someone who flags in the left pocket indicates that he or she is a top, while someone who flags in the right pocket is a bottom. Bottoms prefer to participate as recipients in sexual and fetish encounters, while tops prefer just the opposite.

Knowing about the hanky code can be useful if you are traveling to an area with a large queer or fetish-oriented population, as you might unwittingly send out a signal if you leave a handkerchief in your back pocket. However, many people rely on other social cues beyond the hanky code; if you happen to have, for example, a gray handkerchief in your right pocket while innocently riding the subway, you are unlikely to be ravaged by eager bondage tops, although someone might approach with a courteous introduction.

PublicPeople is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Mary McMahon
By Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a PublicPeople researcher and writer. Mary has a liberal arts degree from Goddard College and spends her free time reading, cooking, and exploring the great outdoors.

Discussion Comments
Mary McMahon
Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a...

Learn more
PublicPeople, in your inbox

Our latest articles, guides, and more, delivered daily.

PublicPeople, in your inbox

Our latest articles, guides, and more, delivered daily.