Skip to content

CSS color names

Every keyword a browser understands by name, with its hex, RGB and HSL. There are 148 of them but only 139 distinct colors, because 9 names are exact duplicates of another name. Values here are what a rendering engine resolves the keyword to, not a transcription. 60 of them open a full page.

A

SwatchKeywordHexRGBHSL
aliceblue240, 248, 255208, 100%, 97%
antiquewhite250, 235, 21534, 78%, 91%
aqua is the same color as cyan0, 255, 255180, 100%, 50%
aquamarine127, 255, 212160, 100%, 75%
azure240, 255, 255180, 100%, 97%

B

SwatchKeywordHexRGBHSL
beige245, 245, 22060, 56%, 91%
bisque255, 228, 19633, 100%, 88%
black0, 0, 00, 0%, 0%
blanchedalmond255, 235, 20536, 100%, 90%
blue0, 0, 255240, 100%, 50%
blueviolet138, 43, 226271, 76%, 53%
brown165, 42, 420, 59%, 41%
burlywood222, 184, 13534, 57%, 70%

C

SwatchKeywordHexRGBHSL
cadetblue95, 158, 160182, 25%, 50%
chartreuse127, 255, 090, 100%, 50%
chocolate210, 105, 3025, 75%, 47%
coral255, 127, 8016, 100%, 66%
cornflowerblue100, 149, 237219, 79%, 66%
cornsilk255, 248, 22048, 100%, 93%
crimson220, 20, 60348, 83%, 47%
cyan is the same color as aqua0, 255, 255180, 100%, 50%

D

SwatchKeywordHexRGBHSL
darkblue0, 0, 139240, 100%, 27%
darkcyan0, 139, 139180, 100%, 27%
darkgoldenrod184, 134, 1143, 89%, 38%
darkgray is the same color as darkgrey169, 169, 1690, 0%, 66%
darkgreen0, 100, 0120, 100%, 20%
darkgrey is the same color as darkgray169, 169, 1690, 0%, 66%
darkkhaki189, 183, 10756, 38%, 58%
darkmagenta139, 0, 139300, 100%, 27%
darkolivegreen85, 107, 4782, 39%, 30%
darkorange255, 140, 033, 100%, 50%
darkorchid153, 50, 204280, 61%, 50%
darkred139, 0, 00, 100%, 27%
darksalmon233, 150, 12215, 72%, 70%
darkseagreen143, 188, 143120, 25%, 65%
darkslateblue72, 61, 139248, 39%, 39%
darkslategray is the same color as darkslategrey47, 79, 79180, 25%, 25%
darkslategrey is the same color as darkslategray47, 79, 79180, 25%, 25%
darkturquoise0, 206, 209181, 100%, 41%
darkviolet148, 0, 211282, 100%, 41%
deeppink255, 20, 147328, 100%, 54%
deepskyblue0, 191, 255195, 100%, 50%
dimgray is the same color as dimgrey105, 105, 1050, 0%, 41%
dimgrey is the same color as dimgray105, 105, 1050, 0%, 41%
dodgerblue30, 144, 255210, 100%, 56%

F

SwatchKeywordHexRGBHSL
firebrick178, 34, 340, 68%, 42%
floralwhite255, 250, 24040, 100%, 97%
forestgreen34, 139, 34120, 61%, 34%
fuchsia is the same color as magenta255, 0, 255300, 100%, 50%

G

SwatchKeywordHexRGBHSL
gainsboro220, 220, 2200, 0%, 86%
ghostwhite248, 248, 255240, 100%, 99%
gold255, 215, 051, 100%, 50%
goldenrod218, 165, 3243, 74%, 49%
gray is the same color as grey128, 128, 1280, 0%, 50%
green0, 128, 0120, 100%, 25%
greenyellow173, 255, 4784, 100%, 59%
grey is the same color as gray128, 128, 1280, 0%, 50%

H

SwatchKeywordHexRGBHSL
honeydew240, 255, 240120, 100%, 97%
hotpink255, 105, 180330, 100%, 71%

I

SwatchKeywordHexRGBHSL
indianred205, 92, 920, 53%, 58%
indigo75, 0, 130275, 100%, 25%
ivory255, 255, 24060, 100%, 97%

K

SwatchKeywordHexRGBHSL
khaki240, 230, 14054, 77%, 75%

L

SwatchKeywordHexRGBHSL
lavender230, 230, 250240, 67%, 94%
lavenderblush255, 240, 245340, 100%, 97%
lawngreen124, 252, 090, 100%, 49%
lemonchiffon255, 250, 20554, 100%, 90%
lightblue173, 216, 230195, 53%, 79%
lightcoral240, 128, 1280, 79%, 72%
lightcyan224, 255, 255180, 100%, 94%
lightgoldenrodyellow250, 250, 21060, 80%, 90%
lightgray is the same color as lightgrey211, 211, 2110, 0%, 83%
lightgreen144, 238, 144120, 73%, 75%
lightgrey is the same color as lightgray211, 211, 2110, 0%, 83%
lightpink255, 182, 193351, 100%, 86%
lightsalmon255, 160, 12217, 100%, 74%
lightseagreen32, 178, 170177, 70%, 41%
lightskyblue135, 206, 250203, 92%, 75%
lightslategray is the same color as lightslategrey119, 136, 153210, 14%, 53%
lightslategrey is the same color as lightslategray119, 136, 153210, 14%, 53%
lightsteelblue176, 196, 222214, 41%, 78%
lightyellow255, 255, 22460, 100%, 94%
lime0, 255, 0120, 100%, 50%
limegreen50, 205, 50120, 61%, 50%
linen250, 240, 23030, 67%, 94%

M

SwatchKeywordHexRGBHSL
magenta is the same color as fuchsia255, 0, 255300, 100%, 50%
maroon128, 0, 00, 100%, 25%
mediumaquamarine102, 205, 170160, 51%, 60%
mediumblue0, 0, 205240, 100%, 40%
mediumorchid186, 85, 211288, 59%, 58%
mediumpurple147, 112, 219260, 60%, 65%
mediumseagreen60, 179, 113147, 50%, 47%
mediumslateblue123, 104, 238249, 80%, 67%
mediumspringgreen0, 250, 154157, 100%, 49%
mediumturquoise72, 209, 204178, 60%, 55%
mediumvioletred199, 21, 133322, 81%, 43%
midnightblue25, 25, 112240, 64%, 27%
mintcream245, 255, 250150, 100%, 98%
mistyrose255, 228, 2256, 100%, 94%
moccasin255, 228, 18138, 100%, 85%

N

SwatchKeywordHexRGBHSL
navajowhite255, 222, 17336, 100%, 84%
navy0, 0, 128240, 100%, 25%

O

SwatchKeywordHexRGBHSL
oldlace253, 245, 23039, 85%, 95%
olive128, 128, 060, 100%, 25%
olivedrab107, 142, 3580, 60%, 35%
orange255, 165, 039, 100%, 50%
orangered255, 69, 016, 100%, 50%
orchid218, 112, 214302, 59%, 65%

P

SwatchKeywordHexRGBHSL
palegoldenrod238, 232, 17055, 67%, 80%
palegreen152, 251, 152120, 93%, 79%
paleturquoise175, 238, 238180, 65%, 81%
palevioletred219, 112, 147340, 60%, 65%
papayawhip255, 239, 21337, 100%, 92%
peachpuff255, 218, 18528, 100%, 86%
peru205, 133, 6330, 59%, 53%
pink255, 192, 203350, 100%, 88%
plum221, 160, 221300, 47%, 75%
powderblue176, 224, 230187, 52%, 80%
purple128, 0, 128300, 100%, 25%

R

SwatchKeywordHexRGBHSL
rebeccapurple102, 51, 153270, 50%, 40%
red255, 0, 00, 100%, 50%
rosybrown188, 143, 1430, 25%, 65%
royalblue65, 105, 225225, 73%, 57%

S

SwatchKeywordHexRGBHSL
saddlebrown139, 69, 1925, 76%, 31%
salmon250, 128, 1146, 93%, 71%
sandybrown244, 164, 9628, 87%, 67%
seagreen46, 139, 87146, 50%, 36%
seashell255, 245, 23825, 100%, 97%
sienna160, 82, 4519, 56%, 40%
silver192, 192, 1920, 0%, 75%
skyblue135, 206, 235197, 71%, 73%
slateblue106, 90, 205248, 53%, 58%
slategray is the same color as slategrey112, 128, 144210, 13%, 50%
slategrey is the same color as slategray112, 128, 144210, 13%, 50%
snow255, 250, 2500, 100%, 99%
springgreen0, 255, 127150, 100%, 50%
steelblue70, 130, 180207, 44%, 49%

T

SwatchKeywordHexRGBHSL
tan210, 180, 14034, 44%, 69%
teal0, 128, 128180, 100%, 25%
thistle216, 191, 216300, 24%, 80%
tomato255, 99, 719, 100%, 64%
turquoise64, 224, 208174, 72%, 56%

V

SwatchKeywordHexRGBHSL
violet238, 130, 238300, 76%, 72%

W

SwatchKeywordHexRGBHSL
wheat245, 222, 17939, 77%, 83%
white255, 255, 2550, 0%, 100%
whitesmoke245, 245, 2450, 0%, 96%

Y

SwatchKeywordHexRGBHSL
yellow255, 255, 060, 100%, 50%
yellowgreen154, 205, 5080, 61%, 50%

Common questions

How many CSS color names are there?
There are 148 keywords, but only 139 distinct colors, because nine names are exact duplicates of another name. The figure of 140 gets repeated a lot and is not quite right. All 148 work in every modern browser.
Why does CSS have both gray and grey?
Because the original HTML palette and the SVG palette were merged and neither spelling was dropped. Seven grey keywords carry both spellings: gray, darkgray, dimgray, lightgray, slategray, darkslategray and lightslategray. Both spellings resolve to identical values, so the choice is purely stylistic.
What is the difference between aqua and cyan?
Nothing. Both are #00FFFF. Aqua came from the sixteen HTML 4 colors and cyan from SVG, and CSS kept both. Fuchsia and magenta are the same story, both #FF00FF.
Why is darkgray lighter than gray?
Because they came from different palettes that were never reconciled. CSS gray is #808080 and darkgray is #A9A9A9, which is genuinely lighter. If a grey is behaving unexpectedly in a stylesheet, this is usually the reason. The keyword that actually sits below gray is dimgray at #696969.
Should I use color names or hex codes?
Names are readable and impossible to mistype silently, since an unrecognised name is simply ignored rather than rendering the wrong color. But 139 colors is a narrow palette, and the names carry no system: there is no relationship between lightblue, mediumblue and darkblue beyond the words. For anything designed rather than sketched, hex or a token scale will serve better.
What is rebeccapurple?
It is #663399, added to the CSS color list in 2014 in memory of Rebecca Alison Meyer, daughter of the web standards writer Eric Meyer, who died of a brain tumor on her sixth birthday. It is the only keyword added since the original set was inherited from X11 and SVG.
Share