CSS Color Name Finder
Find the closest CSS named color (from the W3C CSS Color Module Level 4 spec — 148 named colors) for any HEX value. CIEDE2000 perceptual matching, ranked top 8.
- All 148 CSS Color Module Level 4 named colors covered
- CIEDE2000 perceptual matching (same as our Pantone matcher)
- Top 8 ranked by ΔE
- Click-to-copy the name or the HEX
Direct answer
tomato, rebeccapurple). Most are historical X11 names from 1985. We match any HEX to its closest name using CIEDE2000 ΔE in CIE Lab space.CSS Color Name Finder
Closest CSS name
blueviolet · ΔE 5.36
blueviolet
#8A2BE2 · ΔE 5.36
slateblue
#6A5ACD · ΔE 8.73
darkorchid
#9932CC · ΔE 8.76
darkviolet
#9400D3 · ΔE 9.29
mediumslateblue
#7B68EE · ΔE 9.99
blue
#0000FF · ΔE 12.03
mediumpurple
#9370DB · ΔE 13.68
royalblue
#4169E1 · ΔE 14.65
When this saves you time
Real workflows where css color name finder replaces tedious manual work or an in-app subscription tool.
Use a named color in a CSS prototype
Spot 'almost-standard' values in legacy CSS
Pick a semantic name for a token
Explain a color in writing
How it works
The methodology — every transformation documented so the output is reproducible.
Parse the input HEX
Convert to sRGB → CIE XYZ → CIE Lab using D65 illuminant.
Compute ΔE2000 to every named color
Each of the 148 CSS named colors is pre-converted to Lab; we compute CIEDE2000 distance against the input Lab.
Rank ascending
Lowest ΔE wins. Top 8 surface so you can pick by name preference, not just numeric proximity.
Copy the name or HEX
Both forms click-copy. The CSS name works directly in any modern browser CSS.
Worked examples
| Input | Result | Notes |
|---|---|---|
| #FF6347 | tomato (ΔE 0.0) | Exact match. Named color is the canonical encoding. |
| #7A3DFF | blueviolet (ΔE 6.4) | No close named color — input is more saturated than any X11 keyword. |
| #663399 | rebeccapurple (ΔE 0.0) | Added to CSS in 2014 in memory of Rebecca Meyer. Exact named match. |
| #FFC0CB | pink (ΔE 0.0) | The actual CSS pink — brighter than what most designers call 'pink'. |
Common mistakes to avoid
Treating ΔE > 5 as a match
Naming clashes (gray vs grey)
Assuming pink is what you think it is
Forgetting `aqua` === `cyan`
Frequently Asked Questions
The history behind CSS named colors
Most CSS named colors come from the X11 window system color list, established in 1985 and shipped with rgb.txt. Names like cornflowerblue, papayawhip, and peachpuff are unchanged since then. CSS 2.1 added 16 basic colors plus orange; CSS 3 incorporated the X11 list; CSS 4 added rebeccapurple (#663399) in 2014 in memory of Rebecca Meyer.
Why CIEDE2000 instead of RGB distance
Naive RGB Euclidean distance gives nonsense matches because human perception is not uniform in RGB. CIEDE2000, computed in CIE Lab, is the published industry standard for perceptual color difference — same metric we use for Pantone matching. ΔE 1 ≈ just-noticeable difference under standard conditions.
When to use named vs hex vs tokens
- Production design system: use design tokens (
var(--primary)). Never inline HEX or named. - Quick prototype / utility CSS: named colors read better in code review.
- Specific brand value: HEX or HSL channel variable — names are too imprecise.