How many bits per pixel are needed to represent 256 colors?

To represent 256 colors it is needed 8 bit per pixel. 1 bit mean 2 colors, 2 bits mean 4 colors, 3 bits per pixel can represent 8 colors... 8 bits = 256 colors.