An HTML and CSS color names chart is a searchable reference for all 148 opaque named-color keywords standardized by CSS Color, with a lowercase six-digit HEX value, a decimal RGB mapping, and a rendered swatch for each keyword.

When you are getting started, identify which value you already have: part of a CSS color name, an exact #RRGGBB value, or a complete rgb(...) value. The HTML Color Names Chart handles those three cases in the browser and does not send searches or copied values to a server.

how do i get started when i need to use html color names css color names chart
HTML and CSS Color Names Chart: Exact sRGB Mappings

Start with the format you already have

The fastest lookup starts by choosing the correct search mode. Names and numeric formats do not use the same matching rules, so an incomplete numeric entry may produce a no-match result instead of a broad set of possibilities.

Starting point What to enter Matching behavior What to review
CSS color name A complete keyword or a fragment of one Case-insensitive name-fragment matching Standardized keyword, swatch, HEX, and RGB
HEX value An exact six-digit #RRGGBB value A search beginning with # uses exact matching The matching keyword and standardized mapping
RGB value A complete rgb(...) string Exact matching The matching keyword and standardized mapping

A complete rgb(...) search also uses exact matching, so a short numeric fragment cannot accidentally match an unrelated channel value. If nothing matches, the chart shows a no-match message instead of substituting a nearby color. Filtering never changes a mapping, merges aliases, invents fuzzy synonyms, or converts the result into another color space. Matched rows retain the specification table order, which is ASCII alphabetical by keyword in this implementation.

Find and copy the right color

  1. Choose your input format. If you are checking an existing stylesheet, use the syntax already present there: a keyword fragment, a complete six-digit HEX token, or a complete rgb(...) expression.
  2. Enter the value in the filter. For a name search, type part of the CSS keyword. For HEX, include the # and all six digits. For RGB, enter the full rgb(...) string rather than a shortened group of channel numbers.
  3. Review the matching row. Read the standardized CSS keyword, inspect the rendered swatch, and compare the lowercase #RRGGBB token with the decimal rgb(r, g, b) mapping. If several rows appear, select the exact keyword your stylesheet needs.
  4. Click the HEX value when you want a copyable token. The chart requests a clipboard write and reports success only after the browser resolves that request. It copies the visible HEX value without adding a CSS declaration or changing its format.
  5. Clear the filter when the lookup is finished. Clearing it restores all 148 opaque named-color rows in the original specification table order.

If clipboard permission is denied, the visible keyword, HEX, and RGB text can still be selected and copied manually. The browser’s permission decision does not remove the mapping from the page, and no separate RGB copy action should be assumed.

Read each result correctly

Each chart row contains four pieces of information. They describe the same standardized color mapping, but each one supports a different part of your workflow.

Result field What it contains How it helps
CSS keyword One standardized name, with aliases preserved as separate rows Use it where CSS accepts a named-color identifier
HEX One lowercase six-digit #RRGGBB value Click to request a copy of the numeric CSS token
RGB One decimal rgb(r, g, b) value Inspect the three mapped color channels
Swatch A rendered preview of the color Inspect the visual match without treating it as an accessibility rating

All listed colors resolve in the sRGB color space. Their exact values are suitable for digital CSS use, but the names are historical identifiers rather than a perceptually even palette or a scientific taxonomy. A swatch also cannot guarantee that every display will reproduce a particular physical pigment.

Although people commonly search for “HTML color names,” the chart’s reference data is the CSS named-color set. The W3C CSS Color 4 named-colors specification provides the formal source for the standardized keywords and their fixed mappings.

Understand why alias rows repeat

Some names look duplicated because standardized aliases are deliberately preserved as separate rows. Aqua and cyan both map to #00ffff, while fuchsia and magenta both map to #ff00ff. These are not accidental duplicate records: both spellings are valid CSS identifiers, and each can be useful when reading or maintaining an existing stylesheet.

American and British gray spellings also coexist for several names. Keep the spelling already used by your project when you are translating or maintaining code, rather than rewriting it simply because another valid identifier points to the same value. Filtering never merges these rows, so you can still distinguish the identifier from its mapping.

The total of 148 therefore describes standardized keyword rows, not 148 visually distinct colors. Repeated values are expected whenever separate valid identifiers share the same sRGB mapping. The chart is designed to identify those exact relationships, not to rank colors or present them as a ready-made palette.

For additional examples of how alias identifiers behave in CSS, see Using HTML Color Names in CSS: Aliases and Examples.

Handle transparent and currentColor separately

The chart’s 148-row count is intentionally limited to opaque named colors. The special keyword transparent represents transparent black rather than an opaque named swatch. The keyword currentColor depends on an element’s computed color property, so it does not have one fixed standalone HEX value. Neither keyword is included in the table because presenting either as a stable opaque mapping would be misleading.

This exclusion does not mean that transparent or currentColor is invalid CSS. They can still be used where the relevant property grammar accepts them. The limitation is that this particular chart cannot calculate an alpha value for transparent or resolve currentColor without knowing the element and its computed styles.

Use a copied value in CSS

A named-color identifier can be used anywhere a CSS property accepts a color value, subject to that property’s grammar and browser support. For example, if aqua fits your design, color: aqua; uses the keyword directly. If your workflow prefers a numeric token, copy the corresponding #00ffff value and place it after the property name.

The chart copies only the selected HEX token. It does not copy a complete declaration, add color:, or include hidden formatting. If you need the RGB mapping instead, the visible rgb(r, g, b) text is available for manual selection.

Check concerns the chart cannot settle

A color name is not an accessibility verdict. Contrast depends on the foreground-background pair, text size, weight, and the guidance that applies to your content. Use the Color Contrast Checker for that separate evaluation rather than assuming that a recognizable keyword is readable in every context.

The chart is also not a palette generator, gradient builder, image-sampling utility, or historical web-safe-color reference. It preserves one exact mapping for each listed name and does not invent nearby shades or perform color-space conversion. Use a focused tool for those tasks when the required output goes beyond a named CSS color.

For practical browser documentation and usage notes, consult the MDN named-color reference. The chart remains a direct route to its standardized keyword, sRGB mapping, and copyable HEX token.

Complete your first lookup

  • Decide whether your starting value is a keyword, exact six-digit HEX, or complete rgb(...) expression.
  • Use the corresponding matching rule rather than shortening a numeric value.
  • Check the keyword, swatch, HEX, and RGB fields before selecting a row.
  • Preserve standardized aliases when the distinction matters in your CSS.
  • Click the HEX value for clipboard copying, or select the visible text manually.
  • Clear the filter to return to the complete set of 148 opaque named colors.

After the lookup, test the chosen color in the actual page and run any required contrast or output-format checks separately. That keeps the color-name lookup focused on its exact job: identifying and copying standardized CSS mappings.

Related reading: SVG Animation Examples: CSS, SMIL, and JavaScript.