*Let’s learn to quickly write colors for the web!*

Hexcodes are six digit strings used as a shorthand for RGB color.

A hexcode breaks down into three two-digit numbers written in base 16. The first number stands for Red; the second, for Green; the third, for Blue. The higher the number, the more intense the light.</p>

“Base 16” (10_{16}) means that six more numbers are added to each decade. We use the alphabet for these new numbers:

### Base 10: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

### Base 16: 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10

A ‘B’ in base 16 is as many as our 11 in base 10 (regular counting digits). An ‘F_{16}’ is as large as our 15_{10} and 11_{16} = 17_{10}. The highest a two-digit number can be is “FF_{16},” which equals 255_{10}.

If we set all three numbers to FF, we get white.

previous post