HTML Color Codes
Browse and search HTML/CSS color names with their hex, RGB, and HSL values.
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
- Type in the search box.
- Read the hex value.
- 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.