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.
Find the Closest CSS Color Name to a HEX Value
#FF6B6B#FA8072Six closest CSS colors
salmon
94.86% similar · 22.69 RGB distance
- HEX
#FA8072- RGB
rgb(250, 128, 114)- HSL
hsl(6.176 93.151% 71.373%)
lightcoral
92.47% similar · 33.27 RGB distance
- HEX
#F08080- RGB
rgb(240, 128, 128)- HSL
hsl(0 78.873% 72.157%)
coral
92.39% similar · 33.60 RGB distance
- HEX
#FF7F50- RGB
rgb(255, 127, 80)- HSL
hsl(16.114 100% 65.686%)
tomato
91.65% similar · 36.88 RGB distance
- HEX
#FF6347- RGB
rgb(255, 99, 71)- HSL
hsl(9.13 100% 63.922%)
darksalmon
88.55% similar · 50.58 RGB distance
- HEX
#E9967A- RGB
rgb(233, 150, 122)- HSL
hsl(15.135 71.613% 69.608%)
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.
HEX to Named Color: how to use it
- Enter three or six HEX digits with an optional #, pick a color, or choose one of the examples.
- Compare the input and closest swatch, then review the six results ordered by RGB distance. An exact match has distance zero.
- 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.