There are 16777216 possible colors in RGB. You get this number by multiplying 256x256x256.