Hexadecimal Representation and Web Page Colors

Some Background

All colors are a mixture of three primary colors. Web pages use this fact to determine the colors to be used.
The three primary colors used are Red, Green, and Blue. This combination is also called the RGB color set.

How does it work?

Each color used is defined by a six digit hexadecimal number.
The six digits are divided into three sections of two digits each.
Each section determines the amount of a primary color.
The first two digits are for red, the middle two for green, and the last two digits for blue.
Each of the primary colors can have a value between 0 and FF.
Setting a color value equal to zero indicates the absense of that primary color
Setting a color value to FF indicates that the primary color should be used at its maximum value.

To see some examples click here


Return to the main page