Oh I know how hex works, I have to teach kids how to decode it for troubleshooting one of my archaic electronic cabinets.
By the way there's no 10 or 11 in hex....
0=0
1=1
...
...
9=9
A=10
B=11
C=12
D=13
E=14
F=15
more accurately, the numbers you posted are
10000 (base 2)= 16 (decimal)
10000 (base 16)= 00010000000000000000 (base 2)= 65536 (decimal)
01111 (base 2)= 15 (decimal)
01111 (base 16)= 00001111111111111111 (base 2)= 65535 (decimal)
The highest binary number for a hexadecimal conversion is 1111, which translates to 15 (F)...so to get a true color code as you gave an example for, the binary number would be
#0000000000000000000000000000000000000000000000000 0000000
SO your example "#FF0000" would actually read:
111111110000000000000000 which is good for any video setting using 24-bit color.
For the newer stuff, most everyone is using 32-bit color, which is actually 8-hexadecimal numbers in the code:
00000000 = true black.
FFFFFFFF = true white.
All this computer hacking is making me thirsty.