HTML and CSS Color Names – All 148 with HEX and RGB
Browse every named colour you can use in CSS and HTML, like tomato, teal and rebeccapurple, with their codes.
How to use the CSS Color Names
- Search or browseType part of a name (like “sea” or “slate”) or a HEX code, or pick a colour family.
- SortSort alphabetically, in rainbow order or from light to dark to compare similar shades.
- CopyChoose to copy the name, HEX, rgb() or hsl() value, then click any swatch.
Example
tomato is #FF6347 = rgb(255, 99, 71), and teal is #008080.
rebeccapurple (#663399) was added in CSS4 in memory of Rebecca Meyer, daughter of CSS expert Eric Meyer.
Frequently asked questions
How many colour names does CSS have?
148 named colours (including duplicates such as gray and grey, and aqua and cyan), plus transparent and currentcolor. All modern browsers support every one of them.
Are named colours slower or worse than HEX?
No. Browsers treat a name exactly like its HEX value. Names are handy for quick prototypes and readable code; HEX or HSL give you any of the 16.7 million colours.
Why is “darkgray” lighter than “gray”?
A historical quirk: the names come from old X11 colours, where gray was later redefined as #808080, but darkgray stayed #A9A9A9. So darkgray is actually lighter than gray.