Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Why 24-bit colour means 16 million shades

Each bit doubles the palette, so a few extra bits explode into millions of colours.

A digital image stores each pixel colour as a run of bits. Because every extra bit doubles the number of possible values, 24-bit colour reaches over 16 million shades — more than the human eye can tell apart.

Bits double the palette

The number of colours is 2 raised to the number of bits. Split across red, green and blue, 24 bits means 8 bits each.

colours=2b\text{colours} = 2^{b}

Palette size for b bits per pixel

Counting 24-bit colour

Eight bits per channel, three channels.

How many shades

  1. 1

    Per channel

    28=2562^{8} = 256
  2. 2

    All three channels

    2563=16,777,216256^3 = 16,777,216
  3. 3

    Why it looks smooth

    Over 16 million steps is finer than the eye resolves, so gradients look continuous.

Answer

16,777,216 colours — true colour, beyond what the eye can distinguish.

The formula behind it

Colour Depth

colours=2b\text{colours} = 2^{b}

The takeaway

Colour depth is 2 to the power of the bits per pixel. Doubling per bit is why 24-bit images already exceed what we can see.

Back to all stories