Home
HTML Colour Tags
Background
Certain tags in HTML allow colours to be specified, eg. <BODY>.  In each case the colour is specified in a consistent, if unwieldy, manner by specifying the level of each of the three constituent spectra (red, green and blue).
RGB Values
The six-digit number and letter combinations represent colors by giving their RGB (red, green, blue) value. The six digits are actually three two-digit numbers in sequence, representing the amount of red, green, or blue as a hexadecimal value in the range 00-FF. For example, 000000 is black (no color at all), FF0000 is bright red, 0000FF is bright blue, and FFFFFF is white (fully saturated with all three colors).
These number and letter combinations are rather cryptic, but various resources are available to help track down the combinations that map to specific colours and there is software available that will allow the task to be done at the desk-top.
For some basic colours the name can be used instead of the corresponding RGB value. For example, "black", "red", "blue", and "cyan" are all valid for use in place of RGB values. However, while not all browsers will understand all color names, any browser that can display colors will understand RGB values, so use them whenever possible.
Example colour values
#000000 Black
#FFFFFF White
#9690CC Silvery