How many colours are there?

1 answers


That depends on how granularly you look at color. When you typically use a color picker that decodes colors by hex codes, the names for colors take the form 0xXXXXXX where the 0x is just a name prefix and just means “this is hex” and the big X’s take on a value of 0, 1, ..., 9, A, B, ..., F. This way, white is 0xFFFFFF and black is 0x000000. In this naming convention, there are 16,777,216 colors. In reality though, there are an infinite spectrum of colors since the frequency of photons can vary nearly continuously. Just not all of them have names.

More questions