A name is only as good as its distance
Every name list is a few thousand points scattered through sixteen million colours, so almost no colour has a name of its own. A finder that prints “Mirror Blue” for #2563EB is telling you about a different colour, #2B67F1, and not saying how different. Here that distance is the CIEDE2000 colour difference, the formula the CIE recommends for small differences, printed beside every name with a plain reading: under 1 nobody can tell them apart side by side; past 10 they are different colours.
The size of the list decides how close the nearest name usually is. Measured on 2,000 random colours, the nearest of the 148 CSS keywords sits a median ΔE 5.85 away, which is a visibly different colour; the 921 xkcd survey names used here a median 3.20; the curated list’s 1.90; the full 31,918-name list 1.15. That is why the CSS keyword is shown with a verdict on whether it can stand in for your hex: usually it cannot.
Why the nearest name is not the nearest hex
The quick way to find a nearest name is to treat red, green and blue as distances on a ruler. It is wrong surprisingly often, because equal steps in RGB are not equal steps to the eye. Against the CSS keywords, RGB distance picks a different name from CIEDE2000 for 41.9% of random colours, and its pick is a median 3.1 ΔE further away. Tailwind’s yellow-500, #EAB308, is a clear case: by eye and by CIEDE2000 it is goldenrod (ΔE 4.44); by RGB distance it is orange (ΔE 9.31).
The 2007 Name that Color script many sites still run adds HSL to RGB and measures hue in a straight line, so a red at the top of the hue circle is far from a red at the bottom. Against its own 1,566 names it disagrees with CIEDE2000 on 59.7% of random colours. For #00A806 it answers Japanese Laurel, ΔE 22.5 away, when Apple sits at ΔE 5.0 in the same list.
The name lists, and their licences
- CSS keyword: CSS Color Module Level 4, §6.1 Named Colors (W3C). Source, licensed W3C Software and Document Licence. Ships with the page.
- Survey name: xkcd colour survey by Randall Munroe, 222,500 sessions; 28 crude names removed. Source, licensed CC0 1.0 (public domain dedication). Ships with the page.
- Curated name: color-name-list 14.51.0 "best of" by David Aerne and contributors. Source, licensed MIT. Loaded only when needed.
- Any name: color-name-list 14.51.0 full list by David Aerne and contributors (includes names from chir.ag’s Name that Color). Source, licensed MIT. Loaded only when needed.
Not included, on purpose: Pantone, whose colour books need a paid Pantone Connect licence even inside Adobe’s apps since 2022; RAL, whose official digital values are sold by RAL gGmbH; and NCS, whose notations need a licence from NCS Colour AB. Look those up with their owners. The ISCC-NBS dictionary is missing for a different reason: its 267 centroids have no agreed sRGB values. The two published tables differ by a median ΔE 7.78, and one calls “White” #FFC9D7, a pink. The plain description borrows that system’s words instead, worked out from the colour itself.