This is [not] the minimum amount of bits required to determine the color of a pixel (3 hexadecimals). You would need 6.144 kilobytes of space to store every combination of this setup. (color is always determined with 6 hexadecimals which is 3 bytes (24 bits))