FormatterHQ

HTML Color Names

The complete list of HTML color names and CSS colour keywords, sorted by hue, with HEX, RGB and HSL values. Search, switch views and click to copy any name or code.

Loading tool…
Ready.

How to use the HTML Color Names

  1. Scroll the grid, which is sorted by hue so similar colours sit together.
  2. Type part of a name ("blue") or a HEX fragment ("#ff") in the search box to filter.
  3. Switch to Table view to see HEX, RGB and HSL side by side.
  4. Click a swatch, name or code to copy it.

All HTML color names in one list

Every modern browser understands 148 colour keywords in HTML and CSS. They come from a mix of sources: the 16 original HTML 4 colours such as navy and teal, the X11 colour names adopted by SVG and CSS 3, and rebeccapurple, added in 2014 in memory of Rebecca Meyer. This page lists all of them with their HEX, RGB and HSL values.

Using named colors

.warning { color: darkorange; }
.debug   { outline: 2px dashed hotpink; }

Keywords are case-insensitive and work anywhere a colour is accepted, including SVG fill attributes and canvas drawing.

Surprises worth knowing

  • darkgray (#a9a9a9) is lighter than gray (#808080), a legacy of the X11 list.
  • gray/grey, aqua/cyan and fuchsia/magenta are exact duplicates.
  • green is #008000; the pure green #00ff00 is called lime.

The 16 original HTML colors

These are the names defined in HTML 4, and they are the ones you will still see in old markup and email templates. Most use only the channel values 00, 80, C0 and FF:

NameHEXNameHEX
black#000000silver#C0C0C0
gray#808080white#FFFFFF
maroon#800000red#FF0000
purple#800080fuchsia#FF00FF
green#008000lime#00FF00
olive#808000yellow#FFFF00
navy#000080blue#0000FF
teal#008080aqua#00FFFF

Two other keywords, transparent and currentcolor, are valid colour values in CSS but are not counted among the 148 named colours, because they do not stand for one fixed colour.

Beyond keywords

Named colours are great for prototypes and teaching, but they do not form a balanced palette. To find the keyword closest to one of your own colours, use the color name finder; to build a real design palette, start with the color palette generator.

Grid and table views

The grid view is ideal for browsing: colours are sorted by hue and then by lightness, so you can scan from reds through yellows, greens and blues to purples, with the greys grouped at the start. The table view is better when you need values: it lists every keyword with its HEX code, rgb() and hsl() notation, and the name and HEX code can be copied with a click. The search box filters both views by name or by HEX fragment, so typing "slate" shows all nine keywords that contain it, from darkslateblue to slategrey, together.

Browser support

All 148 names are supported by every browser in use today, including in inline style attributes, SVG and email clients that accept CSS.

Clicking a swatch copies the keyword itself, which is often more readable in code reviews than a HEX value. In table view you can copy the HEX code or name separately.

Privacy

The tool runs entirely in your browser. Nothing you type or paste is sent to our servers.

Frequently asked questions

How many color names are there in CSS?
There are 148 named colours, plus the special keywords transparent and currentColor.
Are HTML color names case-sensitive?
No. DarkOrange, darkorange and DARKORANGE are all the same colour.
Why is darkgray lighter than gray?
The names were inherited from the X11 window system, where gray was defined differently. CSS kept both values for compatibility.
Can I use color names in SVG and canvas?
Yes. SVG attributes such as fill and stroke, and the Canvas 2D API, accept the same keywords as CSS.

Last updated October 3, 2026

Related tools

Color Blindness Simulator See how images and colour palettes look with protanopia, deuteranopia, tritanopia and other colour-vision deficiencies. Color Contrast Checker (WCAG) Check the WCAG 2 contrast ratio of text and background colours for AA and AAA, preview it live and get the closest passing colour. Color Converter Convert any colour to HEX, RGB, RGBA, HSL, HSV and CMYK at once. Accepts CSS names and any notation. Color Mixer Mix two colours at any ratio and generate blend steps in OKLab, RGB, Lab, LCH or HSL, with CSS color-mix() output. Color Name Finder Find the name of a colour: the closest CSS colour names to any HEX, RGB or HSL value, with a plain-English description. Color Palette Generator Generate colour palettes from a base colour with harmony rules (complementary, triadic, analogous…) or at random, lock favourites and export CSS. Image Average Color Finder Find the average and dominant colour of an image — useful for placeholders, card backgrounds and theme colours. Runs in your browser. Image Color Palette Extractor Extract the dominant colours of any photo or screenshot as a palette with percentages, then copy HEX codes or export CSS variables. Image Color Picker Pick exact pixel colours from an uploaded image with a zoom loupe. Get HEX, RGB and HSL values and keep a list of picked colours. RGB to CMYK Converter Convert RGB colour values to CMYK instantly, with a live colour swatch preview, colour picker and copy buttons. RGB to Colortone Converter Generate the tints, shades and tones of a RGB colour as a palette with swatches and ready-to-copy codes. RGB to HEX Converter Convert RGB colour values to HEX instantly, with a live colour swatch preview, colour picker and copy buttons.