butr,
As you probably know, hex is is based on 16 digits/letters. 0-9 and A-F. If you look at color codes, let's say 3AFFA9, you can decipher it like this:
Code: 3AFFA9
Color: RRGGBB
For Red: 3A
3 (3) x 16 = 48 + A (10) = 58 Red
For Green: FF
F (15) x 16 = 240 + F (15) = 255 Green
For Blue: A9
A (10) x 16 = 160 + 9 (9) = 169 Blue
Hope this helps,
Tom
🙂