HTML Color Names Reference

Browse all 140+ named HTML/CSS colors with their hex codes and RGB values. Search and copy color codes instantly.

About this reference

Browse every named CSS colour with its hex code, and search by name or code. Click to copy.

All 140 names are supported in every browser.

How to use it

  1. Type in the search box.
  2. Read the hex value.
  3. Click to copy.

Named colours

CSS defines 140 named colours, from AliceBlue (#F0F8FF) to YellowGreen (#9ACD32). Names are case-insensitive. The 16 original HTML colours are aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow.

Worked example

Common names

Red#FF0000
Navy#000080
Teal#008080
Tomato#FF6347
Gold#FFD700

Tips and common mistakes

  • Use hex or HSL in design systems.
  • Names are handy for quick prototypes.
  • Check contrast.
  • Gray and grey are both valid.
  • Use currentColor to inherit.

Frequently asked questions

How many colour names does CSS have?

140.

Are names case-sensitive?

No.

What is rebeccapurple?

#663399, added in CSS4.

Is grey the same as gray?

Yes.

What is the hex of white?

#FFFFFF.

Is it free?

Yes.

Related tools