Types of Hackers Explained: White, Black, Grey, Green, Blue, Red, Purple and Yellow Hats — Plus Red, Blue and Purple Teams

Cyber · 2026-11-15 · By H.A

Types of Hackers Explained: White, Black, Grey, Green, Blue, Red, Purple and Yellow Hats — Plus Red, Blue and Purple Teams

A professional guide to every hacker hat and type, from white, black and grey to green, blue, red, purple and yellow, plus hacktivists, state actors, insiders and the security team colour wheel, and why authorisation is the line that matters.

Executive Summary

"Hacker" is one of the most misunderstood words in technology. In popular culture it usually means a criminal breaking into systems. In the security industry, it describes anyone with deep technical skill in finding and exploiting weaknesses, and most of those people work to protect systems, not attack them.

To separate intent from skill, the industry uses a colour-coded vocabulary of hats. The best-known are white, black and grey, but the list has grown to include green, blue, red, purple and others. Alongside the hats, a separate set of colours describes security teams, such as red, blue and purple teams, inside organisations.

This guide explains every common label, what each type of hacker does, how the hats differ from the teams, and why, in law, the only distinction that really matters is authorisation.

Where the Hat Labels Come From

The hat terminology borrows from classic Western films, where heroes often wore white hats and villains wore black ones. The security community adopted the shorthand in the 1990s to describe a hacker's intent:

Over time, more colours were added to describe motives, skill levels and roles. Some of these labels are widely recognised; others are informal and defined differently by different sources. Where definitions vary, we note it.

The Core Three: White, Black and Grey

White hat hackers

White hats, often called ethical hackers, use the same tools and techniques as criminals, but only with explicit permission and to improve security.

Black hat hackers

Black hats break into systems without permission for financial gain, espionage, disruption or personal satisfaction.

Grey hat hackers

Grey hats fall between the two. They break into systems without permission, but usually without malicious intent.

The Extended Hats

As the community grew, new colours appeared to describe other kinds of hacker. These labels are less formal, and definitions vary.

Green hat hackers

Green hats are newcomers to hacking who are still learning.

Blue hat hackers

The term "blue hat" has two common and very different meanings:

Context usually makes clear which meaning is intended.

Red hat hackers

Red hats are often described as vigilantes who target black hat hackers.

Purple hat hackers

Purple hats are commonly described as hackers who practise on their own systems.

Yellow hat hackers

The yellow hat label is informal and inconsistent. Some sources use it for hackers who focus on taking over social media accounts, often for harassment or revenge. In the security colour wheel described below, yellow refers instead to builders, the developers and architects who create systems. Treat the hat meaning with caution.

Beyond Hats: Other Types of Hackers

Several other labels describe hackers by motive, sponsor or skill rather than by colour.

Hats Versus Teams: The Security Colour Wheel

Hats describe individuals and their intent. Teams describe roles inside an organisation's security programme. The two are often confused.

The core teams

The extended colour wheel

Security researcher April C. Wright extended these colours in a 2017 Black Hat talk, "Orange Is the New Purple", to bring software builders into security:

The colour wheel reflects a simple idea: security improves fastest when attackers, defenders and builders learn from each other.

Where the Lines Blur

The hat system is useful shorthand, but real people do not always fit neatly into one colour.

The Law Does Not Recognise Hats

The most important point for anyone interested in hacking: courts do not care about hat colours. They care about authorisation.

Becoming a White Hat

For readers interested in a career in ethical hacking:

Quick Reference

Analyst Assessment

The hat vocabulary has lasted because it captures something real: the same skills can protect or harm, and intent matters. But it also oversimplifies. In practice, three factors decide where someone stands: authorisation, intent and impact.

We expect three trends to shape this landscape:

For organisations, the lesson is practical: invest in white hats, red teams and purple teaming before black hats test you for free. For individuals drawn to hacking, the lesson is simpler: whatever colour you think your hat is, get permission first.

Sources

REEF SENTINEL