Hexidecimals and Base 16On the page entitled "Take Control of Your Color Scheme" I outlined the basics of hexidecimals, and explained that the codes used to determine colors in HTML are actually a description of a red/green/blue light pattern. By modifying these codes from the "normal" ones, you can create various different shades of the basic colors.
The first step is to understand base 16 numbers. Mathematics as taught in school are what is known as base 10, that is a "ones" place, a "tens" place, etc. Some may call this place value, or something similar. Base sixteen works the same, save that the "place values" are much larger numbers. In base 10, each place value is ten times larger than the place immediately to it's right. In base sixteen, the same is true, save that each place is sixteen times larger. For example:
1*1=1
1*10=10
10*10=100
10*100=1000, and so on.
1*1=1
1*16=16
16*16=256
16*256=4096, and so on.
Along these same lines, numbers in base ten can be 0-9 before they carry over to the next "place value". Similarly, numbers in base sixteen may be 0-15 before they carry over. Therefore, we need to figure out how to refer to numbers 10-15 as one-digit statements. And so, alphabet to the rescue. When you look at a hexidecimal statement, "FC082D" for example, read the F as a 15, the C as a 12, etc.
Therefore:
1=1 2=2 3=3.....A=10 B=11 C=12 D=13 E=14 and F=15.
So if we were to convert the example above back into base 10, we would do as follows:
D=13, so make a note of 1*13, because D is in the "ones place".
2=2, so write down 2*16, as 2 is in the "sixteens place"
Next, 8=8, so we get 8*256. Then we have a zero, so 0*4096. This is still zero, no matter what numeric base you are using.
C=12, so mark 12*65536. Finally, write 15*1048576 for the sixth and (thankfully) final position. You can probably tell without adding up this nightmare that it will be a very large number, however, luck favors us not. We're not through yet. 1*13=13, 2*16=32, 8*256=2048
0*4096=0, 12*65536=786432
15*1048576=15728640
When we add this monstrosity together, we get 16,517,165. All that work for one little number, but the number above is in base ten. Now you know why the computer figures out hexidecimals for you.
Each and every possible number derived from these six-digit hexidecimal codes represents a possible color for your webpage. I'll be nice and spare you a bunch of math. "FFFFFF" works out to 268435455. That's a lot of colors, but believe it or not, that is the total number of shades your computer and/or TV can recognize.
Remember, the higher the number, the closer to white the color will be. This is, of course, speaking in terms of ROY G BIV (Red Orange Yellow Green Blue Indigo Violet), or the spectrum of visible light. White can be found at the red end, and black at the violet end.
I suggest you play around with the numbers and find the colors you like best. As you tinker with the various possibilities, you will begin to notice some patterns that will assist you in picking exactly the right colors.
And for your viewing pleasure; doing so, note the hexidecimals:
The one I copied and have on my Start menu (for my own use) is #8
You just copy the image, save it on your hard drive.
And put a shortcut to it in the Start menu.
We return to the … Navigator … heart of this site.