Colour name finder — the nearest CSS colour name for any HEX code

Enter a HEX code or any CSS colour and the finder names the closest CSS colour keyword, says whether it is an exact match, and lists the eight nearest names with their distances.

Live demo · real result from this tool
Nearest CSS namecornflowerblue
Its value
#6495ed
Exact match
No
Difference (ΔE OK)
0.0423
Difference (ΔE2000)
5.05

Colours

Closest named colours

NameHEXΔE OK
cornflowerblue#6495ed0.0423
dodgerblue#1e90ff0.0604
steelblue#4682b40.0627
lightslategray#7788990.1009
lightslategrey#7788990.1009
cadetblue#5f9ea00.1069
royalblue#4169e10.1074
slategray#7080900.1112

Processed on your device — nothing is uploaded.

How to use the colour name finder

  1. Enter your Colour as HEX, rgb(), hsl() or any CSS colour, or use the picker.
  2. Read the Nearest CSS name, its value, and whether it is an Exact match.
  3. Check the two distance figures to see how close the name really is.
  4. Compare your colour with the four nearest names in the swatch row, or scan the table of eight.

What it does and when to use it

A HEX code such as #4a90d9 means nothing in a conversation. A name like “close to cornflowerblue” does. The finder gives every colour a recognisable label, which helps when you write design notes, comment a stylesheet, describe a colour to a client, or sort a messy list of brand colours into families.

It only uses the names CSS defines, so any name it gives also works in code. To browse all of them, open the CSS colour names reference. If you work in Tailwind, the nearest Tailwind colour tool names colours by utility class instead. For a full breakdown of one colour in every notation, use the colour picker.

How it works

Your colour and each of the 148 named colours are converted to OKLab, which has a lightness axis L and two colour axes a and b. The distance is:

ΔE OK = √((L₁ − L₂)² + (a₁ − a₂)² + (b₁ − b₂)²)

The list is sorted by that distance. A distance below 0.0005 counts as an exact match. The ΔE2000 figure for the top name uses the CIEDE2000 formula on CIE Lab values, a widely used measure for small colour differences.

Worked examples

These come from the tool itself.

#ff6347. Nearest CSS name: tomato, value #ff6347, Exact match: Yes, ΔE OK 0. The next names are orangered (0.0507) and coral (0.0538).

#4a90d9, a mid sky blue. Nearest: cornflowerblue (#6495ed), ΔE OK 0.0423, ΔE2000 5.05. Dodgerblue (0.0604) and steelblue (0.0627) follow.

#3b82f6. Nearest: dodgerblue (#1e90ff), ΔE OK 0.0363, ΔE2000 5.69, then royalblue and cornflowerblue.

Limits and tips

  • 148 names cover the colour space unevenly. There are many pale tints and greys, so some other colours land far from any name.
  • A name says nothing about contrast. Check readability separately.
  • Distances are calculated for opaque colours; transparency is ignored.
  • Your colour stays in your browser.

Frequently asked questions

Where do the names come from?
From the list of colour keywords in CSS Color Module Level 4, the names every browser understands, such as tomato, teal and rebeccapurple. The tool does not use marketing names or paint brand names.
How is the nearest name chosen?
Both colours are converted to OKLab, a colour space designed so that equal distances look roughly equally different, and the name with the smallest straight-line distance (ΔE OK) wins. ΔE2000 is shown as a second opinion.
How close is close enough?
As a rough guide, a ΔE2000 under 1 is not visible and under 2 is hard to spot. The blues in the examples on this page are about 5 units from their nearest name, so treat a name as a description, not a substitute.
Why do two names have the same value?
CSS keeps a few aliases. Gray and grey spellings are identical, aqua equals cyan and fuchsia equals magenta. The table lists both spellings when they tie.
Can I use the name in my CSS instead of the HEX?
Only when Exact match says Yes. Otherwise the name gives a slightly different colour, so keep your HEX in code and use the name in comments or documentation.

Sources

  1. CSS Color Module Level 4 — named colors — W3C, accessed 2026-10-08

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close