Color · Made a little simpler

HEX to Named Color

Enter a HEX color and compare the six closest CSS named swatches by RGB distance and similarity. Copy the keyword, HEX, RGB or HSL values.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Input color#FF6B6B
Closest CSS match#FA8072

Six closest CSS colors

  1. salmon

    94.86% similar · 22.69 RGB distance

    HEX
    #FA8072
    RGB
    rgb(250, 128, 114)
    HSL
    hsl(6.176 93.151% 71.373%)
  2. lightcoral

    92.47% similar · 33.27 RGB distance

    HEX
    #F08080
    RGB
    rgb(240, 128, 128)
    HSL
    hsl(0 78.873% 72.157%)
  3. coral

    92.39% similar · 33.60 RGB distance

    HEX
    #FF7F50
    RGB
    rgb(255, 127, 80)
    HSL
    hsl(16.114 100% 65.686%)
  4. tomato

    91.65% similar · 36.88 RGB distance

    HEX
    #FF6347
    RGB
    rgb(255, 99, 71)
    HSL
    hsl(9.13 100% 63.922%)
  5. darksalmon

    88.55% similar · 50.58 RGB distance

    HEX
    #E9967A
    RGB
    rgb(233, 150, 122)
    HSL
    hsl(15.135 71.613% 69.608%)
  6. palevioletred

    87.76% similar · 54.05 RGB distance

    HEX
    #DB7093
    RGB
    rgb(219, 112, 147)
    HSL
    hsl(340.374 59.777% 64.902%)

Similarity scales Euclidean distance in encoded sRGB to 0–100%. CSS aliases share one result.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

HEX to Named Color: how to use it

  1. Enter three or six HEX digits with an optional #, pick a color, or choose one of the examples.
  2. Compare the input and closest swatch, then review the six results ordered by RGB distance. An exact match has distance zero.
  3. Copy a CSS keyword, one of its exact aliases or its HEX, RGB or HSL values from the result card.

Limits and notes

Matches 148 opaque CSS keywords grouped into 139 distinct sRGB values. Distance is Euclidean across encoded 8-bit RGB channels, and similarity scales it against the black-to-white distance. Supports opaque HEX only.

How your privacy works →

HEX to Named Color: common questions

Why can an exact match show two names?

CSS sometimes defines aliases for a single swatch. For example, aqua and cyan both represent #00FFFF and appear together.

Can I use four- or eight-digit HEX here?

This tool assumes an opaque swatch and accepts only three- or six-digit HEX. To compare the visible color of a translucent swatch, first composite it onto the surface where it will appear.

How is similarity calculated?

The tool divides the RGB distance by the maximum distance between black and white, subtracts that fraction from one and converts the result to a percentage. It measures numeric proximity in encoded RGB.

Guides