Standard CSS Color Names
There are 17 color names that are legally recognized by CSS - i.e. will not cause your webpage to fall foul of CSS validators
- Aqua
- Black
- Blue
- Fuchsia
- Gray
- Green
- Lime
- Maroon
- Navy
- Olive
- Orange
- Purple
- Red
- Silver
- Teal
- White
- Yellow
All other colors must be specified using their hexadecimal value, #nnnnnn or as an RGB triplet mmm mmm mmm where n takes values from 0 to F and mmm is in the range 0 to 255 or 0 to 100%. The latter formats are rarely used. It should be noted that legal CSS color names are shorter than their hexadecimal values. For a detailed discussion of RGB and other models for color click here.