Color name finder

Paste any colour code to get its closest CSS colour name. #2563eb, for example, is closest to royalblue. Matching uses perceptual OKLab distance, so the result looks like your colour, not just numerically close.

Your color · #2563eb

CSS color · #4169e1

royalblueClosest match
#4169e1

Next closest CSS names

Difference is the perceptual distance (lower is closer).

All 148 CSS color names

The gray and grey spellings are duplicates: each pair points to the same color, so the table lists both names for the same HEX value.

SwatchNameHEXRGB
aliceblue#f0f8ffrgb(240, 248, 255)
antiquewhite#faebd7rgb(250, 235, 215)
aqua#00ffffrgb(0, 255, 255)
aquamarine#7fffd4rgb(127, 255, 212)
azure#f0ffffrgb(240, 255, 255)
beige#f5f5dcrgb(245, 245, 220)
bisque#ffe4c4rgb(255, 228, 196)
black#000000rgb(0, 0, 0)
blanchedalmond#ffebcdrgb(255, 235, 205)
blue#0000ffrgb(0, 0, 255)
blueviolet#8a2be2rgb(138, 43, 226)
brown#a52a2argb(165, 42, 42)
burlywood#deb887rgb(222, 184, 135)
cadetblue#5f9ea0rgb(95, 158, 160)
chartreuse#7fff00rgb(127, 255, 0)
chocolate#d2691ergb(210, 105, 30)
coral#ff7f50rgb(255, 127, 80)
cornflowerblue#6495edrgb(100, 149, 237)
cornsilk#fff8dcrgb(255, 248, 220)
crimson#dc143crgb(220, 20, 60)
cyan#00ffffrgb(0, 255, 255)
darkblue#00008brgb(0, 0, 139)
darkcyan#008b8brgb(0, 139, 139)
darkgoldenrod#b8860brgb(184, 134, 11)
darkgray#a9a9a9rgb(169, 169, 169)
darkgreen#006400rgb(0, 100, 0)
darkgrey#a9a9a9rgb(169, 169, 169)
darkkhaki#bdb76brgb(189, 183, 107)
darkmagenta#8b008brgb(139, 0, 139)
darkolivegreen#556b2frgb(85, 107, 47)
darkorange#ff8c00rgb(255, 140, 0)
darkorchid#9932ccrgb(153, 50, 204)
darkred#8b0000rgb(139, 0, 0)
darksalmon#e9967argb(233, 150, 122)
darkseagreen#8fbc8frgb(143, 188, 143)
darkslateblue#483d8brgb(72, 61, 139)
darkslategray#2f4f4frgb(47, 79, 79)
darkslategrey#2f4f4frgb(47, 79, 79)
darkturquoise#00ced1rgb(0, 206, 209)
darkviolet#9400d3rgb(148, 0, 211)
deeppink#ff1493rgb(255, 20, 147)
deepskyblue#00bfffrgb(0, 191, 255)
dimgray#696969rgb(105, 105, 105)
dimgrey#696969rgb(105, 105, 105)
dodgerblue#1e90ffrgb(30, 144, 255)
firebrick#b22222rgb(178, 34, 34)
floralwhite#fffaf0rgb(255, 250, 240)
forestgreen#228b22rgb(34, 139, 34)
fuchsia#ff00ffrgb(255, 0, 255)
gainsboro#dcdcdcrgb(220, 220, 220)
ghostwhite#f8f8ffrgb(248, 248, 255)
gold#ffd700rgb(255, 215, 0)
goldenrod#daa520rgb(218, 165, 32)
gray#808080rgb(128, 128, 128)
green#008000rgb(0, 128, 0)
greenyellow#adff2frgb(173, 255, 47)
grey#808080rgb(128, 128, 128)
honeydew#f0fff0rgb(240, 255, 240)
hotpink#ff69b4rgb(255, 105, 180)
indianred#cd5c5crgb(205, 92, 92)
indigo#4b0082rgb(75, 0, 130)
ivory#fffff0rgb(255, 255, 240)
khaki#f0e68crgb(240, 230, 140)
lavender#e6e6fargb(230, 230, 250)
lavenderblush#fff0f5rgb(255, 240, 245)
lawngreen#7cfc00rgb(124, 252, 0)
lemonchiffon#fffacdrgb(255, 250, 205)
lightblue#add8e6rgb(173, 216, 230)
lightcoral#f08080rgb(240, 128, 128)
lightcyan#e0ffffrgb(224, 255, 255)
lightgoldenrodyellow#fafad2rgb(250, 250, 210)
lightgray#d3d3d3rgb(211, 211, 211)
lightgreen#90ee90rgb(144, 238, 144)
lightgrey#d3d3d3rgb(211, 211, 211)
lightpink#ffb6c1rgb(255, 182, 193)
lightsalmon#ffa07argb(255, 160, 122)
lightseagreen#20b2aargb(32, 178, 170)
lightskyblue#87cefargb(135, 206, 250)
lightslategray#778899rgb(119, 136, 153)
lightslategrey#778899rgb(119, 136, 153)
lightsteelblue#b0c4dergb(176, 196, 222)
lightyellow#ffffe0rgb(255, 255, 224)
lime#00ff00rgb(0, 255, 0)
limegreen#32cd32rgb(50, 205, 50)
linen#faf0e6rgb(250, 240, 230)
magenta#ff00ffrgb(255, 0, 255)
maroon#800000rgb(128, 0, 0)
mediumaquamarine#66cdaargb(102, 205, 170)
mediumblue#0000cdrgb(0, 0, 205)
mediumorchid#ba55d3rgb(186, 85, 211)
mediumpurple#9370dbrgb(147, 112, 219)
mediumseagreen#3cb371rgb(60, 179, 113)
mediumslateblue#7b68eergb(123, 104, 238)
mediumspringgreen#00fa9argb(0, 250, 154)
mediumturquoise#48d1ccrgb(72, 209, 204)
mediumvioletred#c71585rgb(199, 21, 133)
midnightblue#191970rgb(25, 25, 112)
mintcream#f5fffargb(245, 255, 250)
mistyrose#ffe4e1rgb(255, 228, 225)
moccasin#ffe4b5rgb(255, 228, 181)
navajowhite#ffdeadrgb(255, 222, 173)
navy#000080rgb(0, 0, 128)
oldlace#fdf5e6rgb(253, 245, 230)
olive#808000rgb(128, 128, 0)
olivedrab#6b8e23rgb(107, 142, 35)
orange#ffa500rgb(255, 165, 0)
orangered#ff4500rgb(255, 69, 0)
orchid#da70d6rgb(218, 112, 214)
palegoldenrod#eee8aargb(238, 232, 170)
palegreen#98fb98rgb(152, 251, 152)
paleturquoise#afeeeergb(175, 238, 238)
palevioletred#db7093rgb(219, 112, 147)
papayawhip#ffefd5rgb(255, 239, 213)
peachpuff#ffdab9rgb(255, 218, 185)
peru#cd853frgb(205, 133, 63)
pink#ffc0cbrgb(255, 192, 203)
plum#dda0ddrgb(221, 160, 221)
powderblue#b0e0e6rgb(176, 224, 230)
purple#800080rgb(128, 0, 128)
rebeccapurple#663399rgb(102, 51, 153)
red#ff0000rgb(255, 0, 0)
rosybrown#bc8f8frgb(188, 143, 143)
royalblue#4169e1rgb(65, 105, 225)
saddlebrown#8b4513rgb(139, 69, 19)
salmon#fa8072rgb(250, 128, 114)
sandybrown#f4a460rgb(244, 164, 96)
seagreen#2e8b57rgb(46, 139, 87)
seashell#fff5eergb(255, 245, 238)
sienna#a0522drgb(160, 82, 45)
silver#c0c0c0rgb(192, 192, 192)
skyblue#87ceebrgb(135, 206, 235)
slateblue#6a5acdrgb(106, 90, 205)
slategray#708090rgb(112, 128, 144)
slategrey#708090rgb(112, 128, 144)
snow#fffafargb(255, 250, 250)
springgreen#00ff7frgb(0, 255, 127)
steelblue#4682b4rgb(70, 130, 180)
tan#d2b48crgb(210, 180, 140)
teal#008080rgb(0, 128, 128)
thistle#d8bfd8rgb(216, 191, 216)
tomato#ff6347rgb(255, 99, 71)
turquoise#40e0d0rgb(64, 224, 208)
violet#ee82eergb(238, 130, 238)
wheat#f5deb3rgb(245, 222, 179)
white#ffffffrgb(255, 255, 255)
whitesmoke#f5f5f5rgb(245, 245, 245)
yellow#ffff00rgb(255, 255, 0)
yellowgreen#9acd32rgb(154, 205, 50)

Color name finder FAQs

How do I find the name of a color from its HEX code?

Paste the HEX code into the finder above. It converts the code to OKLab, compares it with all 148 CSS named colors and returns the closest name plus the four next-nearest matches, so you can see how exact the result is. #2563eb, for example, comes back as royalblue.

How many named colors does CSS have?

CSS has 148 named colors, including the gray and grey spelling pairs such as gray/grey, darkgray/darkgrey and slategray/slategrey, plus rebeccapurple, which was added in CSS Color Level 4.

Can I use color names instead of HEX in CSS?

Yes. Every CSS named color is a valid color value, so background: royalblue; works exactly like background: #4169e1;. Names are easier to read and remember, while HEX gives you the full palette rather than the fixed named set.

Why is the closest name not an exact match?

There are only 148 named colors but millions of possible HEX codes, so most colors sit between names. The finder uses perceptual OKLab distance rather than raw RGB distance, so the name it returns looks like your color to the eye, but the swatch is the closest named color, not a conversion of your exact code.

Related color tools

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools