All 141 CSS color names
Colors you can write by name in CSS and HTML, grouped by family. Open one to get its codes, palettes and contrast checks.
Red 13
Orange 20
Yellow 9
Green 20
Cyan 15
Blue 17
Purple 6
Pink 12
Brown 3
White 19
Gray 6
Black 1
About the CSS color names
CSS ships with 141 named colors that you can write out in full — tomato, rebeccapurple, gainsboro — instead of a hex code. They are not a modern palette. Most arrived from the X11 window system in the 1980s, which is why the set has ten shades of gray with inconsistent spellings and no orange until HTML 4 added one.
Names are handy while you are sketching: background: tomato reads at a glance and needs no lookup. They are a poor fit for finished work, because the set has gaps where you need them most — there is no muted blue between steelblue and slategray, and the greens jump from limegreen straight to forestgreen with nothing in between.
Two spellings are worth knowing. gray and grey both work everywhere and mean the same thing, as do all their compounds. And rebeccapurple was added in 2014 in memory of Eric Meyer's daughter — the only named color in CSS with a dedication behind it.
Every color below opens a page with its codes in seven formats, a tint and shade scale, harmony palettes and a contrast check against white and black. Those pages are tools rather than articles, so they are kept out of search results — follow a swatch to reach one.