Home / HTML color codes and names

HTML color codes and names

All 141 named CSS colors with their hex and RGB values. Click any color to copy its hex code.

141 colors

Reds (8)

Pinks (6)

Oranges (6)

Yellows (12)

Greens (20)

Cyans (11)

Blues (16)

Purples (19)

Browns (16)

Whites (17)

Grays (10)

Advertisement

Using color names in HTML and CSS

Any of these names can be used anywhere CSS expects a color, and every browser supports them. color: tomato; gives exactly the same result as color: #FF6347;. Names are not case-sensitive, so Tomato and TOMATO also work.

Named colors are handy for quick prototypes and readable code. For a brand or design system, hex or RGB values give you the full range of 16.7 million colors.

Gray or grey?

Both spellings work for every gray color: gray and grey, darkslategray and darkslategrey, and so on. Surprisingly, darkgray (#A9A9A9) is lighter than plain gray (#808080), a quirk inherited from older color systems.

Colors with two names

A few names are exact duplicates: aqua and cyan are both #00FFFF, and fuchsia and magenta are both #FF00FF. rebeccapurple (#663399) is the newest named color, added in honor of Rebecca Meyer, the daughter of CSS pioneer Eric Meyer.

Need a color that isn't on the list? Make one with the color picker, or find the colors in an image with the image color finder.

Advertisement

Frequently asked questions

How many HTML color names are there?

There are 141 named colors in CSS, plus alternate grey spellings for the gray colors. All of them are listed on this page.

Can I use color names in HTML?

Yes. Use them anywhere CSS takes a color, for example color: teal or background-color: gold in a stylesheet. Every browser supports them.

Are CSS color names case-sensitive?

No. Tomato, tomato and TOMATO all work.

What is the hex code for white and black?

White is #FFFFFF and black is #000000.

Why is darkgray lighter than gray?

CSS color names came from older X11 color lists, where darkgray was defined as #A9A9A9. The plain gray value #808080 came from the HTML standard. Both were kept for compatibility.

More free color tools

Advertisement