Hex Codes Use The Hexadecimal System to Minimize Length There are 256 possible shades each of red, green and blue (0 through 255). If we wanted to produce white (the brightest levels of all three colors combined), we’d need to write #255255255 .