The HTML color code table for web work: 148 CSS named colors (with HTML 4 basics flagged) plus 30 common web colors, with HEX and RGB values, swatch previews, search by name / HEX / RGB, and click-to-copy.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Four ways to search: English name (tomato), Chinese name (番茄), HEX (#FF6347 or a fragment such as FF6347) and RGB (rgb(255, 99, 71) or 255, 99, 71, matched exactly).
Color table
Named colors and their HEX values come from the 148 names defined in CSS Color Module Level 4; the common web set is our own 30-value list, all taken from the web safe palette. Groups are derived from the HSL hue, not an official classification.
Total 178 colors(148 CSS named + 30 common web)· matched 178
Click a swatch to copy its HEX and see HEX / RGB / HSL below.
What this tool does
Look up a color while writing CSS: type a name such as tomato or rebeccapurple and get its spec HEX and RGB values, so you never mistype a hex digit again.
Search backwards: you have #FF6347 or rgb(255, 99, 71) and want to know whether it has a name and what the Chinese name is, which decides whether to write the keyword or the HEX.
Pick colors by family: the 178 entries are grouped into 12 families (red, orange, yellow, green, cyan, blue, purple, pink, brown, gray, white, black) so you can stay inside one family and click a swatch to copy its HEX.
Maintain legacy pages: the 16 HTML 4 basic colors (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow) are flagged in the list for very old templates.
Example
Input
tomato
Output
tomato / 番茄红 #FF6347 rgb(255, 99, 71)
The query can be an English name, a Chinese name, a HEX value (#FF6347 or a fragment such as 3366) or RGB (both rgb(255, 99, 71) and 255, 99, 71 match exactly).
Frequently asked questions
How many colors does the table contain?
178, in two sets: the 148 CSS named colors from CSS Color Module Level 4 (including same-value aliases such as gray/grey, aqua/cyan and fuchsia/magenta), plus 30 common web colors we curated. The names and HEX values of the named set come straight from the spec; every common web color is taken from the web safe palette (00/33/66/99/CC/FF per channel) and can be filtered separately with the Data set selector.
Are the color families official?
No. CSS defines color names, not families. The 12 families here (red, orange, yellow, green, cyan, blue, purple, pink, brown, gray, white, black) are derived automatically from the HSL hue: colors whose channels span 12 or less are classified as black, white or gray by lightness, the rest fall into hue bands, and warm colors darker than 32% lightness become brown. That is why a named color such as brown (#A52A2A) lands in the red family — the grouping is only meant to narrow down your choice.
Why can I find both gray and grey, or aqua and cyan?
Because they are aliases with identical values: #808080 is both gray and grey, #00FFFF is both aqua and cyan and #FF00FF is both fuchsia and magenta. The 148 names therefore cover 145 distinct values; both spellings appear in the list and either one matches in search.
Why does a HEX search return several rows?
Because HEX search matches fragments: 3366 hits every color whose HEX contains those digits (for example #336699 and #003366). To pin down one color, type the full six digits (#FF6347) or use the exact RGB form rgb(255, 99, 71).
Is the color data sent to a server?
No. All 178 entries ship with the page and both searching and grouping run locally in your browser. No network requests are made — clicking a swatch only copies its HEX or RGB to the clipboard.