There are two ways to specify a colour in HTML code:
If a colour is specified by its red-green-blue components, each of these can have an intensity from 0 to 255. This means that there are 16,777,216 possible colours (2563). Hexadecimal numbers are convenient for specifying colour components, because the 0–255 range in decimal becomes 00–FF in hexadecimal, requiring only two digits. Black is #000000 and #FFFFFF is white.