#993300

#CCCCCC

#999999

#996699

#FF9900

#FFFF99

#339933

#66CCFF

#996600

#CC3300

#FF9999

#66CC66

#FFFFFF

#CCCCFF

#FF9966

#336699

#FFCC33

#000000

#990099

#00FF33

In web programming each color is assigned a six-digit code. The first two digits indicate the amount of red a color contains. The second two determine the amout of Green, and the final two digits represent the amount of blue saturation. Understanding CSS color coding is quite simple once you understand the system upon which it is based.

Every

When given a Hexidecimal code one can arrive at the RGB values by

To covert the Hexidecimal code into RGB values

1. Separate the code into color indicators

-the first two digits =R

-the second two = G

-the third two =B

2. Multiply the first number of each color by 16

3. Add the second number of the color to the sum

4. Arrive a the RGB equilivalent

Using Magenta

as the example we mathematically understand the process of RGB/Hexidecimal conversiton

The Hexidecimal Value for Magenta is 993300

Thus 99=Red saturation 33=Green saturation 00=Blue saturation

RED

(9x16)+9=153

GREEN

(3x 16)+3=51

BLUE

(0 x 16) + 0 = 0)

The RGB code for Magenta 993300 is R =153 G =51 B =00

In the above colors one will notice that not all the Hexidecimal formulas are written with numbers.

The most frequent letter within this system is

In simpliest terms

Numercially

other letters used in this system express two-digit numbers with a single character position:

B =11

C =12

D =13

E =14

F= 15