ToolNimba

๐ŸŽจ Color Name Finder: What Color Is This Hex Code?

Shihab Mia By Shihab Mia ยท Updated 2026-07-01

Type a 3- or 6-digit hex, or use the picker. The nearest CSS color name updates live.

Your color

#6495ED

Nearest named color

#6495ED

Closest name: cornflowerblue exact match

Paste a hex code like #6495ED and this color name finder tells you the closest named CSS color: cornflowerblue, in that case. It converts your color to RGB, measures the distance to every one of the roughly 140 standard CSS color names, and returns the nearest match with its hex, RGB values, and a side-by-side swatch. You can also skip typing and use the picker to choose a color visually. The result is a plain-English name for any shade, plus a distance score that tells you how faithful that name really is.

What is the Color Name Finder?

A hex code such as #6495ED is a precise machine label: two hexadecimal digits each for red, green and blue, giving over 16 million possible values. It is exact but not human friendly. Named colors are the opposite. Words like "cornflowerblue", "tomato" and "slategray" are easy to say and remember, but there are only about 140 of them in the CSS specification, so almost any arbitrary hex falls somewhere between two names rather than landing on one exactly. This tool bridges the two by finding the single named color that sits closest to whatever you enter, then showing you exactly how close that match is.

The matching treats each color as a point in a three-dimensional space whose axes are the red, green and blue channels, each running 0 to 255. The distance between two colors is the straight-line (Euclidean) distance between their points: distance = sqrt((R1 - R2)^2 + (G1 - G2)^2 + (B1 - B2)^2). The tool measures that distance from your color to every named CSS color and reports the one with the smallest value. A distance of 0 means your hex is an exact named color, while larger numbers mean the nearest name is only an approximation. This is the same nearest-neighbour approach behind most "name that color" tools, just scoped to the official CSS keyword set so every result is a name browsers actually recognise.

There is an important caveat about accuracy. RGB distance is simple and fast, but it does not match how the human eye perceives color difference. Our eyes are far more sensitive to changes in green than to changes in blue, so two pairs of colors with the same RGB distance can look very different in how far apart they seem. For naming a color in everyday use the nearest RGB match is almost always right, but for precision work, matching a brand color or judging perceptual sameness, a perceptual metric like CIEDE2000 in the CIELAB color space is the more accurate choice. Some larger dictionaries (with thousands of paint and fashion names) use exactly that Delta-E approach; this tool stays with the compact, standards-backed CSS list on purpose so the names are portable and unambiguous.

Why limit to CSS named colors at all? Because those names are the ones you can drop straight into CSS, SVG or a design token and have every browser render identically. A name like "tomato" is not a rough label here, it maps to a fixed, specified hex (#FF6347). Bigger dictionaries give you more poetic names, but those names are not machine-readable and vary between vendors. If your goal is a usable keyword for code or a shared, unambiguous reference for a design handoff, the CSS set is the practical choice. If your goal is a marketing or paint name, treat this result as the underlying hue and reach for a specialist dictionary on top.

A few practical notes on how colors relate. The CSS names cluster unevenly: there are many named grays and blues but far fewer named oranges and purples, which is why an orange hex sometimes returns a match with a larger distance than a blue one. Names can also share a hex (aqua and cyan are both #00FFFF), so an exact color may legitimately map to either alias. And because the tool works purely on RGB math, it runs instantly in your browser with no upload, no signup and no data leaving your device, which matters when the color comes from a confidential design file or client screenshot.

When to use it

  • Figuring out a plain-English name for a hex code you found in a design file, CSS, or screenshot.
  • Choosing a readable CSS keyword instead of a raw hex value when the exact shade is not critical.
  • Naming colors picked from a photo or palette for documentation, tickets, or a design handoff.
  • Sanity-checking a brand color against the nearest web-safe keyword before writing CSS.
  • Teaching or learning how RGB values map onto the standard set of named web colors.
  • Quickly answering "what color is this?" when someone sends you only a hex value.

How to use the Color Name Finder

  1. Type a hex code into the field (3-digit shorthand like #6cf or 6-digit like #6495ED both work).
  2. Or click the color picker and choose a color visually.
  3. Read off the nearest named CSS color, its hex, RGB, and the distance score.
  4. Compare the two swatches side by side to judge how close the match is.
  5. Copy the color name or its hex with one click to paste into your CSS or notes.

Formula & method

distance = sqrt((R1 - R2)^2 + (G1 - G2)^2 + (B1 - B2)^2), measured from your color to each named CSS color. The name with the smallest distance is the match. A distance of 0 means an exact named color.
#6495EDyour colorStep 1: input hexR 100G 149 B 237Step 2: convert to RGBmeasure distance toevery CSS colorsqrt(dR^2+dG^2+dB^2)smallest winscornflowerblue#6495ED . distance 0 (exact)Result: nearest named CSS color

Worked examples

You enter #336699 and want to know its closest CSS color name.

  1. Convert the hex to RGB: #336699 = R 51, G 102, B 153.
  2. Compare against steelblue (#4682B4 = R 70, G 130, B 180).
  3. distance = sqrt((51 - 70)^2 + (102 - 130)^2 + (153 - 180)^2)
  4. distance = sqrt(361 + 784 + 729) = sqrt(1874) = 43.29
  5. No other named color scores lower, so steelblue is the nearest.

Result: Nearest named color: steelblue (#4682B4), distance 43.29

You pick #FF5733, a vivid orange-red, and want a name for it.

  1. Convert the hex to RGB: #FF5733 = R 255, G 87, B 51.
  2. Compare against tomato (#FF6347 = R 255, G 99, B 71).
  3. distance = sqrt((255 - 255)^2 + (87 - 99)^2 + (51 - 71)^2)
  4. distance = sqrt(0 + 144 + 400) = sqrt(544) = 23.32
  5. tomato has the smallest distance of all named colors.

Result: Nearest named color: tomato (#FF6347), distance 23.32

You enter the shorthand #6cf and want the exact name.

  1. Expand the shorthand: #6cf becomes #66CCFF.
  2. Convert to RGB: R 102, G 204, B 255.
  3. The nearest CSS name is skyblue-family; the closest exact keyword compared is lightskyblue (#87CEFA = R 135, G 206, B 250).
  4. distance = sqrt((102 - 135)^2 + (204 - 206)^2 + (255 - 250)^2)
  5. distance = sqrt(1089 + 4 + 25) = sqrt(1118) = 33.44

Result: Nearest named color: lightskyblue (#87CEFA), distance 33.44

Sample CSS named colors with their hex and RGB values

NameHexRGB
cornflowerblue#6495ED100, 149, 237
steelblue#4682B470, 130, 180
tomato#FF6347255, 99, 71
seagreen#2E8B5746, 139, 87
slategray#708090112, 128, 144
rebeccapurple#663399102, 51, 153
gold#FFD700255, 215, 0
crimson#DC143C220, 20, 60

How to read the distance score

DistanceWhat it means
0Your hex is exactly a named CSS color.
1 to 25Very close, the name is a faithful label for your shade.
25 to 60A reasonable approximation, the nearest available name.
Over 60Your color sits between names, the match is rough.

CSS color name aliases that share the same hex

NameAliasShared hex
aquacyan#00FFFF
fuchsiamagenta#FF00FF
graygrey#808080
darkgraydarkgrey#A9A9A9

Common mistakes to avoid

  • Expecting an exact name for every hex. There are only about 140 named CSS colors but over 16 million possible hex values, so most colors have no exact name. The tool gives the nearest one, not a perfect label. Check the distance score to see how close it really is.
  • Assuming RGB distance equals perceived difference. Euclidean RGB distance is simple but does not match human vision, which is far more sensitive to green than blue. Two matches with the same distance can look noticeably different. For perceptual accuracy, a CIELAB metric like CIEDE2000 is better.
  • Confusing aliases like aqua and cyan. Some CSS names share the same hex (aqua and cyan are both #00FFFF, fuchsia and magenta are both #FF00FF). A nearest-match tool may return either one for that exact color, since both are equally correct.
  • Typing an invalid hex. Only 3-digit (#abc) or 6-digit (#aabbcc) hex codes work. Stray characters, a missing digit, or an 8-digit hex with alpha will not parse, so double-check the value if no name appears.
  • Treating the CSS name as a paint or brand match. The result is the nearest web keyword, not a Pantone, RAL, or paint-chip name. Those use their own systems and Delta-E matching. Use the CSS name for code and a specialist dictionary for physical color matching.
  • Forgetting that shorthand doubles each digit. A 3-digit hex expands by repeating each digit, so #6cf is #66CCFF, not #06C0F0. If a shorthand result looks off, expand it to six digits first and re-check.

Glossary

Hex code
A six-digit (or three-digit shorthand) hexadecimal value encoding the red, green and blue channels of a color, written with a leading #.
Named CSS color
One of roughly 140 keyword color names recognised by web browsers, such as "tomato" or "steelblue", each tied to a fixed hex value.
RGB
The red, green, blue color model where each channel ranges from 0 to 255, the basis for hex codes and screen color.
Euclidean distance
The straight-line distance between two points; here, between two colors treated as points in red-green-blue space.
CIEDE2000
A perceptual color-difference formula in the CIELAB color space that more closely matches how the human eye judges how different two colors look.
CIELAB
A color space designed so equal numeric distances correspond roughly to equal perceived differences, used for accurate color matching.
Delta-E
A single number expressing the perceived difference between two colors; smaller means more similar, with CIEDE2000 as the modern formula.
Hex shorthand
A three-digit hex form where each digit is doubled, so #6cf expands to #66CCFF, valid only when all three channel pairs repeat.

Frequently asked questions

What color is this hex code?

Paste the hex code into the finder and it returns the nearest named CSS color along with that name's own hex, RGB, and a swatch. If the distance score is 0 the hex is an exact named color; otherwise the name is the closest available approximation.

How does the color name finder choose the match?

It converts your color to RGB, then measures the Euclidean distance to every named CSS color using sqrt((R1 - R2)^2 + (G1 - G2)^2 + (B1 - B2)^2). The name with the smallest distance wins. A distance of 0 means an exact match.

Why is the matched color not identical to mine?

There are only about 140 named colors versus more than 16 million hex values, so most colors have no exact name. The tool returns the closest one. The distance score tells you how near the match is: small numbers mean a faithful label.

Can I use the picker instead of typing a hex?

Yes. Click the color picker, choose any color visually, and the finder fills in the hex and shows the nearest named color instantly. You can also switch back to typing a hex at any time.

Does it support 3-digit hex shorthand?

Yes. Both 3-digit shorthand (like #6cf, which expands to #66CCFF) and full 6-digit hex (like #6495ED) are accepted. Hex codes with an alpha channel (8 digits) are not parsed.

Is RGB distance the most accurate way to name a color?

For everyday naming it works well, but it does not perfectly match human perception, since our eyes weigh green more heavily than blue. For precision color matching, a perceptual metric such as CIEDE2000 in the CIELAB color space is more accurate.

Why does this tool use only CSS named colors, not thousands of names?

CSS names are the ones browsers, SVG, and design tokens recognise, so every result is portable and unambiguous. Larger dictionaries add poetic paint and fashion names, but those are not machine-readable and differ between vendors. This tool favours names you can drop straight into code.

Can I find a color name from an image?

This tool takes a hex or picker input rather than an image. To name a color in a photo, first pick the pixel with an image color picker to get its hex, then paste that hex here to get the nearest named CSS color.

What is the difference between aqua and cyan?

None in value. Both are exactly #00FFFF, along with several other CSS alias pairs like fuchsia and magenta. For an exact color the tool may return either name, since both are correct.

Does using the finder send my color anywhere?

No. All the matching happens in your browser with plain RGB math. Nothing is uploaded, so it is safe to use with colors from confidential design files or client screenshots.

Sources