Web Resources and Utilities >> Valid Color Names
Valid Color Names for HTML and CSS Files
The chart below shows the 16 color names that can be used in HTML or CSS files. These are the only color names that will validate with an HTML or CSS checker. For all other colors, use their corresponding hex codes rather than their names. Go to our HTML Color Codes Chart to find information on other colors.
| Color Name | Hex Value | Color |
|---|---|---|
| aqua | #00FFFF | |
| black | #000000 | |
| blue | #0000FF | |
| fuchsia | #FF00FF | |
| gray | #808080 | |
| green | #008000 | |
| lime | #00FF00 | |
| maroon | #800000 | |
| navy | #000080 | |
| olive | #808000 | |
| purple | #800080 | |
| red | #FF0000 | |
| silver | #C0C0C0 | |
| teal | #008080 | |
| white | #FFFFFF | |
| yellow | #FFFF00 |
