The HTML Color Names Chart lists 148 opaque CSS named colors, giving you exact HEX and RGB mappings so you can choose a readable keyword or a precise color token.
Open the HTML Color Names Chart when you need to confirm a keyword, find a standardized alias, or copy a stable value into CSS. In practical terms, “HTML color names” and “CSS color names” point to standardized CSS named-color identifiers: one can be used wherever CSS accepts one, subject to the property’s grammar and browser support. The decision is therefore about notation and workflow, not between two competing lists.

Match the notation to the job
Choose the representation that matches what you will do with the color. Readability, exact reuse, channel inspection, and legacy maintenance can each favor a different format.
| Approach | Best fit | What to confirm |
|---|---|---|
| CSS color keyword | Readable prototypes and familiar identifiers in an existing stylesheet | The exact keyword and its fixed mapping |
| HEX | A fixed six-digit sRGB token for CSS | The chart’s lowercase #RRGGBB output |
| RGB | Explicit red, green, and blue channels, or verification of a complete rgb(...) value | The decimal rgb(r, g, b) mapping |
Named colors are useful when a human-readable token matters. The chart’s HEX output is already lowercase, and clicking it copies that value without adding a declaration. Use RGB when the individual channels matter or you need to reproduce a complete rgb(...) form. None of these notations changes the underlying sRGB mapping. Names are historical identifiers, not a perceptually even palette or scientific taxonomy: some neighboring entries can look surprisingly similar, and a name does not reliably describe relative lightness. A swatch confirms a fixed digital value, but it does not promise physical-pigment matching or identical display reproduction.
Separate standardized aliases from special keywords
The set follows the W3C CSS Color 4 named colors definition, while the MDN named-color reference provides another way to check browser-supported identifiers. The chart preserves specification-table order, which is ASCII alphabetical by keyword, and keeps standardized aliases as separate rows.
That policy explains familiar entries that share a value. Aqua and cyan both map to #00ffff, while fuchsia and magenta both map to #ff00ff. Several American and British gray spellings also coexist. These are not accidental duplicate records: each spelling is a valid CSS identifier. When maintaining an existing stylesheet, preserve the spelling already in use unless your team deliberately establishes a different convention. During cleanup, search the original keyword first and confirm its mapping before editing.
The count of 148 does not include transparent or currentColor. Transparent is a special color keyword representing transparent black rather than an opaque named swatch. CurrentColor depends on an element’s computed color property, so it has no fixed standalone HEX value. Keeping both outside the table prevents a misleading numeric mapping. Filtering also never changes a mapping, merges aliases, invents synonyms, or converts a color into another color space.
Search with the value you already have
The chart accepts three useful search forms, with matching behavior chosen to reduce accidental results.
| Search input | Matching behavior | Best use |
|---|---|---|
| Part of a CSS color name | Case-insensitive matching against name fragments | Discovering a keyword or checking a remembered name |
| Exact #RRGGBB value | A search beginning with # uses exact HEX matching | Identifying the row behind a known six-digit value |
| Complete rgb(...) value | The complete string is matched exactly | Verifying a value already written in CSS |
Use fragment search for discovery and exact search for confirmation. A complete rgb(...) query is treated as a whole, so a short numeric fragment cannot accidentally match an unrelated channel value. If nothing matches, the chart displays a no-match message instead of substituting a nearby color. Filtering preserves the original order and mappings, and clearing the filter restores all 148 rows.
Look up and copy a value
- Open the chart and type part of a CSS color name, an exact #RRGGBB value, or a complete rgb(...) value in the filter.
- Review the matching standardized keyword, rendered swatch, lowercase HEX value, and decimal RGB value. If the query has no match, the chart says so instead of presenting a nearby color.
- Compare the returned keyword with the identifier you need. Aliases remain separate rows and can share the same color mapping.
- Click the HEX value to request a clipboard write. Wait for the browser to resolve that request before treating the copy as successful. If clipboard permission is denied, select and copy the visible keyword, HEX, or RGB text manually.
- Clear the filter to restore all 148 rows, then paste the copied HEX where needed. The chart copies only the value; it does not wrap it in a CSS declaration or change its capitalization.
Apply the chosen notation in CSS
A named color can be used anywhere CSS accepts a named-color identifier, subject to the property grammar and browser support. Keep the existing keyword when maintaining legacy CSS, use the copied HEX when a project wants one fixed token, and use the RGB row when channel-level inspection helps.
For one shared mapping, color: aqua;, color: #00ffff;, and color: rgb(0, 255, 255); describe the same sRGB color. These are alternative notations for one value, not three different colors. The chart supplies the verified mapping, but your project must decide which notation is clearest and most consistent.
- Readability in a prototype: use the standardized CSS keyword.
- A reusable code token: copy the exact lowercase HEX value.
- Channel debugging: compare the displayed decimal RGB values.
- Legacy cleanup: look up the original name and confirm its value before replacing it.
The copy action returns a bare HEX token, with no hidden format or surrounding CSS. If a design system uses another notation, convert or edit that value deliberately rather than assuming the closest-looking name represents a particular ink, pigment, or display color.
Keep lookup, design, and accessibility tasks separate
A color name alone cannot establish readability. Contrast depends on the foreground-background pair, text size, weight, and applicable guidance, so use the Color Contrast Checker after selecting colors. The named-color chart is a lookup reference, not an accessibility rating.
The reference should also not be stretched into jobs it does not perform. It is not a palette generator, gradient builder, image sampler, or historical web-safe palette; use focused tools for those outputs. All 148 listed colors resolve in the sRGB color space, but the chart makes no promise about physical pigment matching or uniform appearance across displays. Keep color lookup, palette construction, gradient design, print conversion, and accessibility testing as separate tasks with appropriate tools.
If you're weighing options, Web Safe Colors Chart Audit: HEX and Contrast Checks covers this in detail.
If you're weighing options, Check a Color Gradient Result in a CSS Gradient Generator covers this in detail.