HTML color names

HTML and CSS have 148 named colors, from aliceblue to yellowgreen. You can write any of them in place of a hex code, as in color: tomato;, and every browser shows the same color.

The list below groups them by color and sorts each group from light to dark. Click a hex or RGB code to copy it. Names with their own Colorfinch page link to shades, matching colors and palettes.

Red color names

SwatchNameHexRGB
coral
salmon
hotpink
lightcoral
tomato
rosybrown
palevioletred
orangered
deeppink
red
indianred
crimson
mediumvioletred
firebrick
brown
darkmagenta
purple
darkred
maroon

Orange color names

SwatchNameHexRGB
burlywood
lightsalmon
orange
tan
sandybrown
darkorange
peru
chocolate

Yellow color names

SwatchNameHexRGB
yellow
blanchedalmond
moccasin
palegoldenrod
navajowhite
khaki
wheat
gold
darkkhaki
goldenrod
darkgoldenrod
olive

Green color names

SwatchNameHexRGB
aquamarine
greenyellow
palegreen
chartreuse
lawngreen
springgreen
lightgreen
mediumspringgreen
lime
turquoise
yellowgreen
mediumaquamarine
darkseagreen
limegreen
lightseagreen
mediumseagreen
olivedrab
seagreen
forestgreen
green
darkolivegreen
darkgreen

Blue color names

SwatchNameHexRGB
paleturquoise
aqua
cyan
powderblue
lightblue
lightskyblue
skyblue
lightsteelblue
mediumturquoise
darkturquoise
deepskyblue
cornflowerblue
cadetblue
dodgerblue
steelblue
darkcyan
royalblue
teal
blue
darkslategray
darkslategrey
mediumblue
midnightblue
darkblue
navy

Purple color names

SwatchNameHexRGB
mediumpurple
mediumorchid
mediumslateblue
slateblue
darkorchid
blueviolet
darkviolet
rebeccapurple
darkslateblue
indigo

Pink color names

SwatchNameHexRGB
bisque
peachpuff
pink
lightpink
thistle
plum
violet
darksalmon
orchid
fuchsia
magenta

Brown color names

SwatchNameHexRGB
sienna
saddlebrown

Black color names

SwatchNameHexRGB
black

White color names

SwatchNameHexRGB
white
ivory
lightyellow
mintcream
azure
snow
floralwhite
honeydew
ghostwhite
lightcyan
lemonchiffon
cornsilk
seashell
aliceblue
lightgoldenrodyellow
oldlace
whitesmoke
lavenderblush
beige
linen
papayawhip
antiquewhite
mistyrose
lavender

Gray color names

SwatchNameHexRGB
gainsboro
lightgray
lightgrey
silver
darkgray
darkgrey
lightslategray
lightslategrey
gray
grey
slategray
slategrey
dimgray
dimgrey

How to use color names in CSS

A color name works anywhere CSS expects a color: background: lavender;, border-color: steelblue; or fill="gold" in SVG. Names are case-insensitive, so DarkOrange and darkorange are the same.

Some names are misleading. darkgray (#A9A9A9) is lighter than gray (#808080), and green (#008000) is much darker than lime (#00FF00), the pure green of light. Check the hex before relying on a name, and test text pairs in the contrast checker, since many named colors are too light to carry white text.

Looking for a color that isn't here? Browse all colors, or learn how colors relate in primary colors and analogous colors.

Questions about HTML color names

How many HTML color names are there?

There are 148 named colors in CSS. Nine pairs share a value, such as gray and grey or aqua and cyan, so they cover 139 distinct colors.

Do color names work in every browser?

Yes. All 148 names are part of the CSS standard and work in every current browser, in CSS, inline styles and SVG.

Are color names case-sensitive?

No. Red, RED and red all work. Most style guides write them in lowercase.

Should I use color names or hex codes?

Names are handy for quick prototypes and readable examples. For a real design, hex or another numeric format is better, because only 148 colors have names and your brand colors almost certainly aren't among them.

What is rebeccapurple?

rebeccapurple (#663399) was added to CSS in 2014 in memory of Rebecca Meyer, the daughter of CSS expert Eric Meyer. It is the newest named color.