Color Name Finder

HEX codes are precise but impossible to say out loud. Enter any color and this finder names it — the nearest of the 148 official CSS color names, plus the three runners-up with their distances.

1Pick a color or type a HEX
2See its nearest CSS name
3Copy the name or compare matches
Nearest CSS color name tomato #FF6347 is exactly the CSS colour “tomato”.

Closest matches — click to copy the name

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this color name finder

Pick a color with the swatch or type its HEX code, and the finder answers immediately with the nearest official CSS color name in large type. Underneath, it tells you whether the match is exact — your color is that named color — or an approximation, and by how much. The chips below list the winner and the three next-closest names, each with its own HEX value and distance; clicking a chip copies that name to your clipboard, ready to paste into a stylesheet, a design brief or a message to a colleague who asked “which red is that, exactly?”

The distance number deserves a sentence of explanation. It is the straight-line distance between your color and the named color in RGB space: the square root of the squared differences of their red, green and blue channels. Zero is identity. A distance around 10 is a difference most people cannot spot side by side; 30 is visibly the same family; past 80 the name is best treated as poetry — a rough verbal sketch of the color, useful for conversation, not a substitute for the HEX code in production CSS.

Names earn their keep in communication. “Use the tomato button on the papayawhip card” survives a phone call in a way “use the #FF6347 button” never will, and design systems increasingly pair every brand HEX with a human name for exactly this reason. Find your colors' names once, write them into your style guide next to the codes, and your whole team gets a shared vocabulary — one that happens to be valid CSS, because all 148 of these keywords work directly in stylesheets.

Example: naming this site's blue

Feed the finder our own button blue, #2563EB, and it answers:

Nearest name: royalblue (#4169E1) — distance 30.3 Then: dodgerblue (#1E90FF) — distance 49.7 Then: steelblue (#4682B4) — distance 71.2

There is no exact match — #2563EB is a modern interface blue that the named list, frozen mostly in the 1990s, never contained. But royalblue at distance 30.3 is honestly close: same family, slightly softer and greyer. And the two exact matches everyone should know: #FF0000 is simply red, and #FF6347 — the color this page starts with — is exactly tomato, distance zero.

A short history of the 148 names

The named colors are a fossil record of computing. Sixteen come from the original HTML palette of the early web — the VGA colors: black, silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal and aqua. Most of the rest arrived with the X11 windowing system used on Unix workstations, which is why so many sound like paint chips chosen by engineers in the 1980s: papayawhip, blanchedalmond, lemonchiffon, peachpuff. The list was standardized into CSS, spelling pairs and all (gray and grey, darkgray and darkgrey), and it gained exactly one addition this century: rebeccapurple, #663399, added in 2014 as a memorial. Browsers render all 148 by name today, unchanged, which makes the list one of the oldest stable APIs on the web.

When a name is enough — and when it is not

Use names freely in prototypes, teaching, comments and conversation; use them in production CSS for the genuinely named colors if your team likes the readability. But never let a nearest name silently replace a brand color: royalblue is a fine description of #2563EB and a visibly different color on a button. The professional pattern is both together — the HEX code as the single source of truth, the name as its human handle. That is also why this finder always shows the distance: it tells you, honestly and numerically, whether the name is the color or merely its closest relative.

Frequently asked questions

How does the color name finder work?

It compares your color against all 148 named CSS colors and measures the distance between them in RGB space — the straight-line difference between the two colors' red, green and blue values. The named color with the smallest distance wins, and the page also shows the next three closest matches with their distances.

What are the 148 CSS named colors?

They are the color keywords built into CSS itself, from classics like red, navy and gold to the famously odd ones like papayawhip, blanchedalmond and rebeccapurple. Browsers understand all 148 by name, so writing color: tomato in a stylesheet works exactly like writing color: #FF6347.

What does an exact match mean?

A distance of zero means your HEX code is precisely one of the named colors — #FF6347 is exactly tomato, #FF0000 is exactly red. In that case you can use the name in CSS with total confidence that the rendered color will be identical.

What if my color is not an exact match?

Then the finder gives you the nearest name, which is a description, not a replacement. A distance under about 15 is barely distinguishable; 15 to 50 is clearly the same family; above 50 the name is more of a poetic label than a technical one. Use the name to talk about the color, and keep the HEX code in your stylesheet.

Why do some colors have two names, like aqua and cyan?

History. The list grew from several sources — the original HTML colors, the X11 color set from early Unix systems and later additions — and a few colors arrived twice under different names. Aqua and cyan are both #00FFFF; fuchsia and magenta are both #FF00FF; and gray/grey spelling pairs repeat the same values. When two names tie at distance zero, this tool lists the one that comes first alphabetically.

Can I use these names in real CSS?

Yes — every one of the 148 keywords is valid in any CSS color property in every browser: color, background-color, border-color and the rest. Many developers still prefer HEX for brand colors because it is exact, but named colors are wonderfully readable for prototypes, teaching and quick experiments.

Why is 'darkgray' lighter than 'gray'?

A famous quirk: gray is #808080 while darkgray is #A9A9A9, which is lighter. The names were inherited from the X11 system, where the grey scale was defined relative to a different set of base colors. The list keeps the oddity for compatibility — and it is a good reminder to check values, not just names.

What is rebeccapurple?

It is the newest named color, #663399, added to CSS in 2014 in memory of Rebecca Meyer, the daughter of web standards advocate Eric Meyer. It is the only color in the list named after a person, and a small piece of web history you can use as a perfectly ordinary purple.

Is anything I look up uploaded or tracked?

No. The 148-color list and the distance math live in JavaScript in your own browser. Colors you enter are never sent to a server or stored anywhere — closing the tab clears everything.

Related tools