Colour values

This page is based on an original from the Netscape Javascript handbook. The string literals in this table can be used to specify colours in the JavaScript alinkColor, bgColor, fgColor, linkColor, and vlinkColor properties and the fontcolor method.
You can also use these string literals to set the colour in the HTML reflections of these properties, for example <BODY BGCOLOR="bisque">, to set the COLOR attribute of the FONT tag, for example, <FONT COLOR="blue">colour</FONT> and in tables, <TABLE BGCOLOR="chartreuse">, its headers <TH BGCOLOR="orange">, its rows <TR BGCOLOR="tomato">, and data <TD BGCOLOR="fuchsia">. If you are an English speaker you need to spell colour the American way.

The following red, green, and blue values are in hexadecimal.
# colour red green blue components White Black
This page is best printed by Netscape Navigator as MS Explorer does not print the background colours of table cells.
See also the HTML Example & Test Page.

More colours.