CSS Color Names

All 148 CSS named colours with hex, RGB and HSL, searchable and sortable by hue or lightness, plus a finder that tells you the closest named colour to any colour and how close it is.

Reference Color & Design Updated Oct 3, 2026
Learn how this works
How to Use
  1. Choose Find a name and enter any colour to see the five closest CSS named colours, with how different each one looks.
  2. Or choose Browse all to see every named colour as a swatch.
  3. In Browse, search by name, hex or RGB, filter by colour family, and sort by hue, lightness or name.
  4. Click a swatch to copy its name; Shift-click to copy its hex.
Input
hex, rgb, hsl, oklch…
Presets
Closest named colours
Named colours
148
Showing
—
Nearest name
—
ΔE
—

Worked Example

Find the closest name for #3B82F6.

The colour is compared with all 139 distinct named colours using CIEDE2000, a formula for how different two colours look. The best match is dodgerblue (#1E90FF) at ΔE 5.7, followed by cornflowerblue and steelblue: clearly related, but a visibly different shade — differences under about 2 are hard to see, and above 5 obvious side by side. So #3B82F6 has no exact CSS name; “close to dodgerblue” is the honest description.

By contrast, #FF6347 matches tomato exactly (ΔE 0), so you can write color: tomato and get the identical colour.

Show Work

Enter a colour above to see how its nearest names are found.

Formulas

Closeness
ΔE2000(your colour, name)
Smallest wins; ties go to the first name alphabetically
How close
< 1 · < 2 · < 5 · ≥ 5
Same · very close · similar · clearly different
Count
148 names, 139 colours
9 colours have two names (gray/grey, aqua/cyan, fuchsia/magenta…)
Family
by OKLCH hue, chroma < 0.04 = grey

From X11 to CSS

The long list of names traces back to the X Window System. Its rgb.txt file, started in 1985 and extended through the late 1980s, named hundreds of colours with values tuned for the monitors of the time — including oddities such as papayawhip, navajowhite and lightgoldenrodyellow. Early browsers accepted these X11 names, and in 2002 the SVG and CSS3 colour specifications made 147 of them official, alongside the 16 basic colours HTML had always had.

Merging the two lists caused the famous conflicts: gray, green, maroon and purple took their HTML values, which differ from X11, leaving darkgray lighter than gray. rebeccapurple joined in 2014, bringing the total to 148.

About This Tool

This tool lists all 148 CSS named colours with their hex, RGB and HSL values, searchable by name, hex or RGB numbers, filterable by colour family and sortable by hue, lightness or name. Its finder compares any colour with every named colour using CIEDE2000 and ranks the five closest, with a plain-language verdict on how close each one is.

Click to copy a name or Shift-click to copy a hex. Everything runs in your browser.

Related tools: Universal Color Converter, Web-Safe Colors, and Tailwind CSS Colors.

Frequently Asked Questions

How many CSS named colours are there?

148, defined in CSS Color Module Level 4, plus the keyword transparent. They cover 139 distinct colours, because nine are duplicates under two spellings or names: gray and grey (and the four other *gray/*grey pairs), aqua and cyan, fuchsia and magenta.

Where do the names come from?

Sixteen — black, white, red, lime, blue, yellow and so on — date from HTML 3.2 and the Windows VGA palette. Most of the rest come from the X Window System’s colour list (X11), assembled in the 1980s, which browsers adopted in the 1990s and CSS later standardised. rebeccapurple was the last one added, in 2014.

Why is darkgray lighter than gray?

A historical accident. CSS gray (#808080) comes from the HTML colour set, while darkgray (#A9A9A9) comes from X11, where gray was #BEBEBE. When the two lists merged, gray took the HTML value and darkgray kept its X11 value, so “dark” gray ended up lighter. Green has the same problem: CSS green is #008000, darker than X11’s green.

Should I use named colours in production CSS?

They are fine for prototypes, demos and teaching, and white, black and transparent are everyday values. For a real design, use your own palette in custom properties such as --brand-600, because the named colours were not designed to work together and cover the colour space unevenly.

Why is rebeccapurple special?

It was added in 2014 in memory of Rebecca Meyer, the daughter of CSS pioneer Eric Meyer, who died on her sixth birthday. Purple was her favourite colour. Its value, #663399, sits in the web-safe palette.

How do I use the CSS Color Names?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Naming a colour

Describe #3B82F6 in words: its nearest named colour is dodgerblue, related but visibly different (ΔE 5.7).

Readable CSS in examples

Write color: tomato or border-color: slategray in tutorials and demos so the code explains itself.

Picking a quick colour

Browse the greens by lightness to find one for a prototype without opening a colour picker.

Debugging

outline: 2px solid hotpink makes an element stand out instantly while you inspect a layout.

Last updated: