Hex Colors

Webpage colors using hexadecimal codes.

<BODY BGCOLOR="#D8BFD8">

When you create a graphic for the web, you choose your colors based upon their RGB values. However, HTML will only recognize a color by its hexadecimal equivalent of the RGB values or by its color name, if it has one. Even though most HTML editors and graphics programs have RGB to hexadecimal conversion capability built into them, it might still be helpful to know how it works.

Hexadecimal numbering system:

0 1 2 3 4 5 6 7 8 9 A B C D E F

Colors (web safe) are specified by 00 33 66 99 CC FF

Hexadecimal colors - a quick explanation