How hexadecimal numbers work
Hexadecimal is base 16. It uses digits 0-9 and letters A-F, where A is 10 and F is 15.
Why computers use hexadecimal
Hex maps neatly to binary because each hex digit represents four binary bits. This makes large binary values easier to read and write.
Hex color codes in web design
Web colors often use #RRGGBB, where RR, GG, and BB are the red, green, and blue channel values from 00 to FF.