URI: http://www.j-a-b.net/web/hue/color-names
last updated: 2009-12-04
© 2002-2009 Contact
A huge variety of colour names exists and you may easily find thousands of charts with colour names on the web. Unfortunately, many of these are not applicable to web authoring as they contain non-standard names. In HTML 136 names are allowed and in CSS2.1 only 17 names, based on the 16 VGA colours plus - new in this CSS version - the colour Orange. The first chart lists these valid CSS colour names.
| colour name | |||||
|---|---|---|---|---|---|
| white #ffffff |
yellow #ffff00 |
orange #ffA500 |
red #ff0000 |
fuchsia #ff00ff |
silver #c0c0c0 |
| gray #808080 |
olive #808000 |
purple #800080 |
maroon #800000 |
aqua #00ffff |
lime #00ff00 |
| teal #008080 |
green #008000 |
blue #0000ff |
navy #000080 |
black #000000 |
|
The HTML colour names entirely lack any systematic logic. While some names are easy to memorize, others have totally weird names, like PapayaWhip. Included in the 136 valid HTML colour names are the 17 valid CSS colour names. I have, however, included a couple of more names, which are invalid and must not be used. They serve as a means to show how browsers react to these invalid values. The Opera browsers, for example, does support some of these names due to some strange and unknown reason. Notice, that some names appear twice in the chart. This enables you to compare the standard appearance and the wrong one.
| colour name | ||
|---|---|---|
| Aquamarine | BlueViolet | Bronze |
| CornflowerBlue | DarkOliveGreen | Khaki |
| LightSteelBlue | Maroon | MediumVioletRed |
| SteelBlue | YellowGreen | |
No distinction is made concerning uppercase or lowercase letters. It is however highly recommendable to use mixed lettering with regards to readability, as the following example shows:
lightgoldenrodyellow vs. LIGHTGOLDENRODYELLOW vs. LightGoldenRodYellow
bgcolor
property in association with the colour name.
The following example shows how the colour BrightGold
is rendered in the browsers Netscape 7.1, Internet Explorer 6.0, and Opera 7.23.
Notice, that this colour name is not valid. Netscape totally ignores the name, while
Internet Explorer only ignores the CSS value but produces a dark red HTML background
colour. The parser obviously takes the letters of the colour name which make sense
as hexadecimal values and constructs some new value - in this case B0000D
which is then rendered. Opera takes a third approach. This colour name seems to
be hardcoded into Operas parser thus Opera renders right backgrounds both
for HTML and CSS syntax.
The chart may be displayed either in alphabetical order or in order of descending hexadecimal values
no display method chosen