HTML Color Representation

As this chart shows, the color representation is done three times, once for red, once for green, and once for blue, in that order. By placing all three two-digit codes together, you will get a 6-digit hex code. The hex code is just a representation of the red, green, and blue intensity, in that order.

The computer creates the three intensities, then binds them together to get a single shade of color.

For an example, the hex code FFFFFF is equal to white. By setting the three primary colors to the purest level of red, green, and blue, the combination of all three primary colors produce white.

The hex code 000000 is equal to black. The three primary colors are set to a zero hue color, which produces black.

To get the color yellow, we need to set the red and green hues to full and set the blue to zero, or no hue. This is represented as FFFF00.

However, F and 0 are not the only digits used. As mentioned above, you can use any variation of the sixteen numbers to create literally thousands of different hue settings that cover every color in the scale from pure black to pure white.

For example, the background color you currently see is fff8dc. This includes the full red, partial green and some blue, which displays as a light-tan color, more commonly known as "cornsilk".

Next, we discuss the standard set of named colors.