Use the 148-row HTML Color Names Chart to verify each CSS color keyword against its standardized sRGB HEX and RGB mapping before copying one exact value into CSS.
The HTML Color Names Chart lists all 148 opaque named-color keywords standardized by CSS Color. Use it to find a keyword, confirm its mapping, and copy a precise color token instead of relying on memory or an unofficial shade list.

What the chart actually verifies
People often call these “HTML color names,” but the chart's reference set is the CSS named-color list defined by CSS Color. The W3C CSS Color 4 named-colors specification is the standards reference behind those identifiers. This distinction matters because an HTML page can contain CSS in a style attribute or stylesheet, and the color keyword still has to fit the CSS property that uses it.
Every row contains one CSS keyword, a rendered swatch, a lowercase six-digit #RRGGBB value, and a decimal rgb(r, g, b) value. All listed colors resolve in sRGB. A named-color identifier can be used anywhere CSS accepts a named-color value, subject to the property grammar and browser support.
The verification therefore has two parts: confirm that the identifier maps to the intended standardized sRGB value, then confirm that the chosen token is valid in the target property. The chart handles the mapping; the stylesheet and browser handle property-level use.
Choose the right search input
Use the filter mode that matches what you know. A partial name, a HEX lookup, and an RGB lookup have different rules, so treating them as interchangeable can lead to the wrong row.
| Filter entry | Matching behavior | Best use |
|---|---|---|
| Part of a CSS color name | Case-insensitive name-fragment matching | Find candidates when you know only part of a keyword. |
| Exact #RRGGBB value | A query beginning with # uses exact HEX matching | Verify one specific standardized mapping. |
| Complete rgb(...) value | The complete string uses exact matching | Confirm a known RGB token without relying on a name. |
A complete rgb(...) search is intentionally stricter than a name-fragment search: a short numeric fragment cannot accidentally match an unrelated channel value. Filtering never changes a mapping, merges aliases, invents fuzzy synonyms, or converts the color to another space. If nothing matches, the chart shows a no-match message rather than substituting a nearby color. Results also preserve the specification table order, which is ASCII alphabetical by keyword in this implementation.
Look up and copy a color correctly
- Identify the source token. Copy the name, HEX, or complete RGB expression exactly as it appears in the stylesheet, design specification, or other source you are checking.
- Enter it in the chart using the appropriate filter mode: a color-name fragment, an exact six-digit #RRGGBB value, or a complete rgb(...) value.
- Review the result row as a set. Confirm the standardized keyword, rendered swatch, lowercase HEX value, and decimal RGB value before choosing a token. If no row appears, recheck the input rather than choosing a near match.
- Check for an alias. If more than one valid keyword maps to the same value, decide which identifier best fits the existing code instead of treating the duplicate as an error.
- Click the displayed HEX value to request a clipboard copy. The chart reports copy success only after the browser resolves the clipboard request.
- If clipboard permission is denied, select the visible keyword, HEX, or RGB text and copy it manually. The chart keeps those values visible for this purpose.
- Paste only the color token into the appropriate CSS property. The chart does not add a property name or declaration around what you copy, does not change capitalization, and does not put a hidden format on the clipboard.
- Clear the filter when you are finished to restore the full list of 148 rows.
For example, searching aqua should show the keyword aqua with HEX #00ffff and RGB rgb(0, 255, 255). You can then use the readable keyword color: aqua; or the copied token color: #00ffff; in a CSS declaration. Those are two representations of the same mapping, not two separate colors to place in one property.
Aliases are valid names, not bad duplicates
The chart preserves standardized aliases as separate rows because each spelling is a valid CSS identifier. The following pairs intentionally share an sRGB value:
| Keyword | HEX | Decimal RGB |
|---|---|---|
| aqua | #00ffff | rgb(0, 255, 255) |
| cyan | #00ffff | rgb(0, 255, 255) |
| fuchsia | #ff00ff | rgb(255, 0, 255) |
| magenta | #ff00ff | rgb(255, 0, 255) |
American and British gray and grey spellings also coexist for several color names. The separate rows are therefore useful when reading or maintaining existing stylesheets: an alias with the same mapping does not indicate a bad lookup. For a legacy file, retaining an already valid spelling can avoid an unnecessary edit. For new code, choose the spelling that matches the project's naming convention. The chart never merges aliases or invents a synonym that CSS does not define.
Use the verified value in HTML or CSS
A named color can be useful in a prototype because it makes the declaration easy to scan, while a HEX token gives you the exact standardized sRGB value. The chart supports both decisions: review the name and mapping, or copy the HEX mapping. When translating an existing stylesheet, keep the source's valid identifier when that minimizes change; when creating a reusable color token, copying the HEX value can make the intended value explicit.
In an HTML style attribute, for example, you can write style="color: #00ffff;". In a stylesheet, you can write color: aqua;. The copied chart value is only #00ffff; you are responsible for placing it in valid property syntax. Do not paste the keyword, HEX, and RGB forms together as if they were separate required components.
Check the target property's grammar and browser support separately. The MDN named-color reference is a useful companion when confirming how named colors fit into CSS values. After editing, inspect the browser result so a valid color is not hidden by a more specific rule, an invalid declaration, or a property that does not apply to the element.
Why transparent and currentColor stay outside the table
The 148-row count covers opaque named colors only. transparent is a special color keyword representing transparent black rather than an opaque named swatch. currentColor depends on the element's computed color property, so it has no fixed standalone HEX value. Their absence prevents the chart from presenting misleading numeric mappings; it does not mean that the keywords are invalid CSS.
Separate lookup from accessibility and physical color checks
A name or exact HEX mapping does not establish text readability. Contrast depends on the foreground-background pair, text size, weight, and applicable guidance. Use the Color Contrast Checker for that separate decision; the named-color chart contains no accessibility rating.
The names are historical identifiers, not a perceptually even palette, scientific taxonomy, or guarantee of physical pigment appearance. Neighboring names can look surprisingly similar, and some names do not describe relative lightness consistently. Every mapping is an sRGB value, so it should not be treated as an automatic CMYK or spot-color specification for printing.
The chart also does not generate gradients or palettes, sample images, or provide the historical web-safe color set. Those jobs need focused tools rather than a named-color lookup. For privacy and workflow checks, the chart runs entirely in the browser: it does not send searches or copied values to a server.
Run a final verification checklist
- You searched with the correct mode: name fragment, exact HEX, or complete RGB.
- You checked the keyword, swatch, HEX, and RGB values together.
- You understood that an alias sharing a value is intentional.
- You used one color token in a property that accepts CSS colors.
- You did not force transparent or currentColor into a fixed opaque mapping.
- You assessed contrast separately from the color lookup.
- You cleared the filter if you needed the complete 148-row list again.
If any item is uncertain, return to the row and compare the exact displayed mapping before changing production code. That sequence keeps the lookup precise without confusing a color reference with a palette generator, accessibility test, or print-color conversion.
Related reading: How Do I Decide Whether I Need to Convert RGB to HEX?.
Related reading: SVG Background Pattern Generator: Tile-to-CSS Workflow.