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.
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.
Total 24-bit colours
Count the colours
Work out the famous number.
How many colours?
- 1
256 cubed
- 2
In words
About 16.7 million — more shades than the eye can distinguish.
16,777,216 colours from just three bytes — that is "true colour".
The formula behind it
Colour Count
The takeaway
Hex colour uses one byte per RGB channel: 256^3 gives 16.7 million shades, which is why displays look continuous.