loot.tools

Color Name Finder

Paste a color as HEX, RGB, or HSL and get the closest CSS named color - the keyword you'd actually write in code, like 'tomato', 'steelblue', or 'gold'. The top result is the nearest match, with a handful of runners-up so you can pick the name that reads best. Each match shows its own hex and how far it sits from your color in RGB space, and an exact hit is called out. Use the picker if you'd rather choose visually. Everything runs in your browser.

Paste a HEX, RGB, or HSL color and find the nearest CSS named color. Handy when you've got a hex value and want the closest keyword like "tomato" or "steelblue". Matches are ranked by RGB distance, so the top one is the closest. Runs entirely in your browser.

Closest named color
royalblue
#4169e1 - distance 33.2
Other close matches
dodgerblue
#1e90ff - distance 33.4
cornflowerblue
#6495ed - distance 46.1
steelblue
#4682b4 - distance 66.9
mediumslateblue
#7b68ee - distance 69.5
slateblue
#6a5acd - distance 74.1

Why named colors

CSS ships 148 named colors - keywords like coral, teal, and slategray that you can write straight into a stylesheet instead of a hex value. They're easier to read in code and quicker to remember, but most color tools only hand you hex and rgb. If you've got a hex from a design file and want the closest keyword, this finds it.

How the match works

Each named color has a fixed RGB value. Your color is compared to all of them by straight-line distance in RGB space, and the closest few are listed nearest-first. A distance of 0 means an exact match, which gets flagged. RGB distance isn't perfectly perceptual - two colors that look equally close to the eye can have different numbers - but it lines up with intuition closely enough to name a color.

When this helps

  • Turning a hex from a mockup into a readable CSS keyword
  • Finding a short name to label a swatch or a chart series
  • Checking whether a brand color happens to match a standard keyword
  • Picking a near-equivalent name when you don't need an exact value