by The JavaScript Source

A Wiz note about RGB {Red\Green\Blue} and finding the 6 digit equivalent for html code. {Binary note is a bonus.} HTML uses the Hexadecimal representation of the RGB 256 color codes {0 through 255}.
Because most of us are more familiar with decimal {Base ten} numbers, we will start with the basics. The 10 digits of decimal are 0,1,2,3,4,5,6,7,8,9. Where 0=0 and 10=10=BASE Now for Hexadecimal {Base 16} numbers, we will start with the basics. The 16 digits of hexadecimal are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Where 0=0 and 10 _{16}=16_{10}=BASE
Hence 0 _{10}=00_{16} and 255_{10}=FF_{16}
Computer code is built on Binary {Base 2} numbers, we will start with the basics. The 2 digits of binary are 0,1. Where 0=0 and 10 _{2}=2_{10}=BASE
Try converting the HTML code for this table. The BGCOLOR="#FFFBF0" and the Text {FONT} Color="400040" Therefor, the background color converted into RGB is R: 255 G: 251 B: 240 The text color you see is R: 64 G: 0 B: 64 Hint: Background color FF=R=255 FB=G= F0=B= , Text color 40=R= 00=G=0 {duhhhhh! LOL} 40=B= How does your system see this 'human' number? With only the simple binary code being the system's language, it sees the Background color as 111111111111101111110000 and it sees the Text color as 010000000000000001000000 HINT: Group the binary conversions into 8 digits for each color level. Background = 11111111 | 11111011 | 11110000 = FFFBF0 text = 01000000 | 00000000 | 01000000 = 400040 |