Find a Color Name From a HEX: Why You Get Several Matches

Contents
You've probably entered a HEX code into Color Name Finder and gotten not one answer but several. The tool isn't confused — CSS defines only 148 standard color names, while more than 16.7 million colors actually exist.
So most HEX values can't have an exact match among those 148 names — only a closest one. This article covers what those 148 names actually are and how "closest" gets calculated.
Summary ① CSS defines only 148 color names, so every other color can only be called by the closest name among them. ② "Closest" isn't a simple numeric difference — it's computed with redmean distance, which reflects how differently the human eye perceives colors. ③ When there's no exact match, the tool shows the 3 nearest candidates with their error values, so you can judge whether the top result is a solid answer or a near tie. ④ Only frequently used colors like red and blue carry a Korean name; everything else is shown with its plain CSS name.
The problem: why one HEX value gets several names
You need to put a HEX value like #4A90D9 from a design mockup into a doc or a ticket, and writing "color 4A90D9" doesn't tell the other person much. A name like "cobalt blue" is far more useful.
The catch is that your exact value may not match any CSS name at all. The web officially defines only 148 color names, from aliceblue to yellowgreen, and that's a fixed list CSS inherited and standardized directly from the old X11 system.
Meanwhile, the colors a screen can display are all the R, G, B combinations with each channel at 0–255: 256×256×256, or 16,777,216 colors. Those 148 names are just 148 dots in that huge space, so the odds that a random HEX value lands exactly on one of them are very low.
That's why "what's this color called?" often has no single correct answer in the first place. What exists is the "closest name," and the ranking can shift depending on how you measure distance.
The fix: the 148-name list and how "closest" is calculated
The 148 standard names are a fixed list
The color names CSS recognizes are a fixed list of 148 that doesn't grow or change with trends. Each name maps to exactly one HEX value. For example, steelblue is always #4682B4, and royalblue is always #4169E1.
A color that isn't on the list — which is most real colors — has no name at all. What Color Name Finder does isn't invent a new name for it. It finds the most similar entry among the 148 and tells you which one it is.
"Closest" is measured with redmean distance
Simply subtracting R, G, B values and adding them up doesn't match how people actually see color difference. The human eye is more sensitive to green, and its sensitivity to red and blue shifts with brightness (roughly the average of the red values).
The formula that accounts for this is redmean. Given two colors (R1,G1,B1) and (R2,G2,B2), you calculate it in this order.
rmean = (R1 + R2) / 2
distance = √[ (2 + rmean/256) × (R1-R2)²
+ 4 × (G1-G2)²
+ (2 + (255-rmean)/256) × (B1-B2)² ]
The red and blue terms get weights based on the average brightness of the two colors (rmean), and the green term gets a fixed 4× weight. A value of 0 means the colors are identical; the larger it is, the farther apart they are.
Working it out by hand: #4A90D9
#4A90D9 converts to RGB as (74, 144, 217) (two hex digits each: 4A=74, 90=144, D9=217). Let's compare it against a few blue-ish candidates.
Against cornflowerblue (#6495ED = 100, 149, 237), rmean = (74+100)/2 = 87, and the distance works out to about 52.4.
Against steelblue (#4682B4 = 70, 130, 180), rmean = 72 and the distance is about 67.4. Against royalblue (#4169E1 = 65, 105, 225), rmean = 69.5 and the distance is about 80.3.
Sorted ascending, that's cornflowerblue (52.4) < steelblue (67.4) < royalblue (80.3). None of them has a distance of 0 (an exact match), so #4A90D9 has no "official name" — only a closest one.
You can do this by hand for a handful of candidates, but finding the true minimum across all 148 names means running the calculation 148 times. Check it with our tool.
It runs right in your browser with no install or sign-up, and the color values you enter are never sent to a server.

Enter a HEX or RGB value in the input field (or pick a color with the color picker) and the tool calculates the redmean distance against all 148 names and lists the 3 closest in order. The top result gets an "Exact match" badge only when the value is 0; otherwise it shows "Closest match". If a Korean name exists for the color, it appears next to the name (only the 33 most common colors, like red and blue, are registered), and the copy button to the right of a name copies just that name.
Where people get stuck
| Situation | What's actually happening |
|---|---|
| Error (distance) is exactly 0 | "Exact match" badge — one of the 148 names is the identical color |
| Error is greater than 0 | "Closest match" badge — it's only the nearest of the 148, not the correct answer |
| 1st and 2nd error values are close | With a different weighting, the two candidates could swap places |
| No Korean name next to a color name | Only the 33 common colors have registered Korean names; the rest show the English CSS name only |
A 3-digit shorthand HEX like #39F | Each digit is doubled (→ #3399FF) and compared as that value |
The third row is the confusing one. When the top two are as close as #4A90D9's 1st (cornflowerblue, 52.4) and 2nd (steelblue, 67.4) — an error gap under 20 — a different formula without the 4× green weight (plain Euclidean distance, for instance) can flip the order. Don't go by the top badge alone; check the error numbers and the 2nd and 3rd candidates too.
Recap
- CSS defines only 148 color names, so most real colors can only have the closest name among them.
- "Closest" is calculated with redmean distance, which reflects how the eye perceives color:
rmean=(R1+R2)/2, red and blue terms weighted by rmean, green term fixed at 4×. - An error of 0 means an exact match; anything above 0 means a near candidate — so check the number, not just the badge.
- When the gap between 1st and 2nd is small, another formula could rank them differently, so it's safer to look at the top 3 together.
- Only common colors get a Korean name; the rest are shown with their English CSS name as-is.
It runs right in your browser with no install or sign-up, and the color values you enter are never sent to a server.
Frequently asked questions
Can the same color get a different "closest name" depending on where I look it up?
Yes. The definition of "close" differs from one formula to the next. This tool uses redmean distance, which accounts for how people perceive color (a 4× weight on green, with red and blue adjusted by average brightness). When two candidates' errors are close together, a formula with different weights can rank them the other way around.
How should I read the error number?
It isn't a percentage — it's the distance value produced by the redmean formula itself. A 0 means one of the 148 names is exactly the same color, and the larger the number, the farther that name is from your color. There's no fixed threshold for "under this error means same color," so use it to compare the 1st result against the 2nd and 3rd rather than as an absolute.
Why is there no Korean name next to some color names?
Because only the 33 color names used most in everyday language — like red, blue, and green — have Korean names registered. Names that exist in CSS but have no settled everyday Korean term, such as cornflowerblue or royalblue, are shown with the English CSS name only.
This article was adapted from our Korean original. Read the Korean original