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 screens can show 16 million colours

Eight bits each for red, green and blue multiply into millions of shades.

A hex colour like #FF8800 encodes red, green and blue with one byte each. Since a byte holds 256 levels, the three channels combine into over sixteen million possible colours.

Three channels, 256 levels each

Each colour channel has 256 intensity levels (0-255). Multiply the three together for the total palette.

N=2563N = 256^{3}

Total 24-bit colours

Count the colours

Work out the famous number.

How many colours?

  1. 1

    256 cubed

    2563=16,777,216256^{3} = 16,777,216
  2. 2

    In words

    About 16.7 million — more shades than the eye can distinguish.

Answer

16,777,216 colours from just three bytes — that is "true colour".

The formula behind it

Colour Count

N=2563N = 256^{3}

The takeaway

Hex colour uses one byte per RGB channel: 256^3 gives 16.7 million shades, which is why displays look continuous.

Back to all stories