How many hexadecimal digits are used to specify a color in a web page?

2 answers

How many bits do these hexadecimal digits correspond to?
quite often 24 bits per pixel, so at 4 bits per hex digit, ...