HTML Color Codes
All 148 color names you can use in HTML and CSS, with their HEX, RGB and HSL codes, grouped by color. Click a code to copy it. Values come from the W3C CSS Color Module Level 4 (checked 2026-11-24).
Red HTML color names
Pink HTML color names
Orange HTML color names
Yellow HTML color names
Brown HTML color names
| Name | HEX | RGB |
|---|---|---|
| darkgoldenrod | ||
| saddlebrown | ||
| sienna |
Green HTML color names
| Name | HEX | RGB |
|---|---|---|
| aquamarine | ||
| chartreuse | ||
| darkgreen | ||
| darkolivegreen | ||
| darkseagreen | ||
| forestgreen | ||
| green | ||
| greenyellow | ||
| honeydew | ||
| lawngreen | ||
| lightgreen | ||
| lime | ||
| limegreen | ||
| mediumaquamarine | ||
| mediumseagreen | ||
| mediumspringgreen | ||
| mintcream | ||
| olivedrab | ||
| palegreen | ||
| seagreen | ||
| springgreen | ||
| yellowgreen |
Cyan HTML color names
Blue HTML color names
| Name | HEX | RGB |
|---|---|---|
| aliceblue | ||
| blue | ||
| cornflowerblue | ||
| darkblue | ||
| darkslateblue | ||
| dodgerblue | ||
| ghostwhite | ||
| lavender | ||
| lightskyblue | ||
| lightslategray | ||
| lightslategrey | ||
| lightsteelblue | ||
| mediumblue | ||
| mediumslateblue | ||
| midnightblue | ||
| navy | ||
| royalblue | ||
| slateblue | ||
| slategray | ||
| slategrey | ||
| steelblue |
Purple HTML color names
| Name | HEX | RGB |
|---|---|---|
| blueviolet | ||
| darkorchid | ||
| darkviolet | ||
| indigo | ||
| mediumorchid | ||
| mediumpurple | ||
| rebeccapurple |
White HTML color names
| Name | HEX | RGB |
|---|---|---|
| white | ||
| whitesmoke |
Gray HTML color names
| Name | HEX | RGB |
|---|---|---|
| black | ||
| darkgray | ||
| darkgrey | ||
| dimgray | ||
| dimgrey | ||
| gainsboro | ||
| gray | ||
| grey | ||
| lightgray | ||
| lightgrey | ||
| silver |
Using color names in CSS
Write the name anywhere CSS expects a color: color: teal;, background: lavender; or border: 2px solid crimson;. Names are not case-sensitive. To get a lighter or darker version, or to check if text is readable on a named color, use the color converter and the contrast checker.
Frequently asked questions
How many HTML color names are there?
CSS defines 148 named colors (W3C CSS Color Module Level 4). Some are duplicates with two spellings or names: aqua and cyan are both #00FFFF, fuchsia and magenta are both #FF00FF, and every gray color also works as grey.
Are HTML color names and CSS color names the same?
Yes. HTML pages use CSS for colors, so the names are the same everywhere: color: teal; works in any modern browser.
Which color name was added last?
rebeccapurple (#663399) was added in CSS Color Level 4 in 2014, in memory of Rebecca Meyer, daughter of CSS expert Eric Meyer.
Should I use names or HEX codes?
Names are easy to read for quick work, but HEX, rgb() or hsl() give you any of 16.7 million colors and are what design tools export. Use the converter to switch formats.