Every pixel has 3 bytes of information for the levels of red, green, and blue. Each color gets one byte to represent how brightly it is lit in that pixel(0 - not lit 255 - maximum brightness). Look at a RGB colour code chart to see how they make all of the colours.