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” (1016) 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 ‘F16’ is as large as our 1510 and 1116 = 1710. The highest a two-digit number can be is “FF16,” which equals 25510.
If we set all three numbers to FF, we get white.
previous post