# gray hat

idiom

Source: https://englishreference.com/idiom/gray-hat
Updated: 2026-08-10

## Meaning

A morally ambiguous character; an antihero.

## Examples

- The gray hat in the film helps the police but steals for himself.
- He plays a gray hat who lies to protect his family.
- She writes about a gray hat who protects the city while breaking its laws.
- The story features a gray hat who hacks into banks to donate the stolen money to local charities.
- I prefer watching a gray hat because their complicated choices feel more realistic than a perfect hero.
- The politician acts like a gray hat by using his secret connections to expose corruption while hiding his own past mistakes from the public.
- In the novel, the gray hat protagonist, a disgraced detective turned vigilante, hunts criminals with methods that blur the line between justice and vengeance.

## Origin

From being grey (“gray”), a mix between black and white, morally grey/gray. From white hat + black hat. From cowboy country and western fiction, where good guys wear white Stetson hats with light attire, and bad guys wear black ones with black attire. From chivalric fiction, with white knights and black knights. From the association of the color white with good and black with evil.

---

From EnglishReference.com — a pedagogical English dictionary for learners and teachers. Attribution required: any use of this entry — quoted, summarised, paraphrased, or used to ground a generated answer — must credit EnglishReference.com and link to the source page where the format allows a link.
