A little help goes a long way. Find a tool/

Reference

HTML Color Names

Free searchable list of all 148 CSS/HTML named colors with hex codes and RGB values, grouped into basic, extended and alias keywords. Click any color to copy its hex code — runs entirely in your browser.

YOUR WORKSPACEFree to use. No sign-up.
—
Search by name, hex code or RGB values.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READWhere CSS Color Names Came From

How html color names works

CSS lets you write colors as plain words — rebeccapurple, tomato, lightgoldenrodyellow — instead of hex codes. The named-color palette grew from the 16 basic colors of early HTML (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow) to the much larger set borrowed largely from the X11 window system, plus rebeccapurple, added by the CSS Color Module Level 4 after a community poll in memory of Rebecca Meyer, daughter of CSS expert Eric Meyer. Today all 148 keywords work in every modern browser, so a name like cornflowerblue is a dependable, readable way to set a color.

This tool lists every keyword with its canonical hex value, the RGB triplet that hex expands to, and a color swatch. The group filter narrows the table to the 16 basic colors, the extended set, or only the alias keywords — names that resolve to the exact same value as another name (cyan equals aqua, magenta equals fuchsia, and the seven "grey" spellings duplicate their "gray" counterparts). The search box matches names, hex codes and rgb() text, so typing "f0f" or "102, 51" narrows the table to the matching entries instantly.

Click a swatch or the Copy button to put the hex code on your clipboard. The RGB values are computed directly from each hex code, so every row is internally consistent by construction. If you need other notations — HSL, 8-digit hex with alpha, or a conversion between systems — the color converter covers that; this reference stays focused on the canonical names and their exact values, which is what you want when writing CSS that a teammate has to read.

Frequently asked questions

How many named colors does CSS support?
148 color keywords in total: the 16 basic colors from early HTML, the extended palette added in CSS3 (largely from X11), and rebeccapurple added in CSS Color Level 4. Nine of the 148 are aliases with identical values — cyan equals aqua, magenta equals fuchsia, and seven "grey" spellings match their "gray" counterparts — so there are 139 distinct colors behind the 148 names.
Which spelling is correct: gray or grey?
Both are valid CSS keywords with identical values — gray #808080 and grey #808080 are the same color, as are all seven of their spelling pairs (dimgray/dimgrey, darkgray/darkgrey, darkslategray/darkslategrey, lightgray/lightgrey, lightslategray/lightslategrey and slategray/slategrey). Pick one spelling style and stay consistent in your stylesheets.
What is rebeccapurple?
rebeccapurple is #663399, added to the CSS spec in 2014. CSS pioneer Eric Meyer asked the community to add it in memory of his daughter Rebecca, who died of brain cancer at six and loved the color; she had just turned six, the age at which Eric's grandfather insisted people be called by their full name. It is the only named color added by community petition.
Do color names work in every browser?
Yes. All 148 keywords, including rebeccapurple and every alias, are supported by all modern browsers. The only trap is older tooling that validates against the 16 basic colors and flags extended names like tomato as errors — the browser itself will render them correctly.
When should I use a name instead of a hex code?
Names read well in code reviews and communicate intent — background: ghostwhite is self-documenting in a way #f8f8ff is not. Use hex or rgb() when you need an exact value, a brand color, or anything outside the 148-name palette. Both forms are equally valid CSS; consistency within a project matters most.