Skip to the lesson

How computers workLesson 1 of 6

Part 1 of 3, 0 done

13 min

Everything is numbers

Your phone shows a teal app icon and a text that says "Hi 😀". It stores none of that: no teal, no letters, no smiley. Only numbers made of zeros and ones.

Ticket 01 · The guess

How many colors?

Your phone's screen paints every dot (a pixel) by mixing red, green and blue light. The usual way to store a color gives each of the three a whole number from 0 to 255w3.org ·2026. How many different colors can one pixel show?

2 million colors
0 colors20 million
Words to know

Spot something wrong?

Tell us what looks off. No name or email needed.

What kind of problem?

0 / 1000

We'll also send this page, the lesson, ticket 1, so we can find it. Nothing else. Privacy

·
Sources and every number (7)

Sources

  • CSS Color Module Level 4 (Candidate Recommendation Draft): rgb() ranges and named colors · W3C, 2026
  • Unicode 18.0 code chart: C0 Controls and Basic Latin (U+0000 to U+007F) · Unicode Consortium, 2026
  • How "Gangnam Style" broke YouTube's view counter (3 December 2014) · CBS News, 2014
  • AP Computer Science Principles Course and Exam Description (course framework, Big Ideas 2, 4, 5) · College Board, 2023
  • RFC 3629, UTF-8, a transformation format of ISO 10646 · IETF, 2003
  • Unicode 18.0 code chart: Emoticons (grinning face) · Unicode Consortium, 2026
  • RFC 791, Internet Protocol · IETF, 1981

Every number

  • 0w3.org ·2026 · The lowest level of one color light in a stored color: CSS Color Level Four maps zero percent to it.
  • 255w3.org ·2026 · The highest level: many graphics engines stored each color light in a single byte, which holds whole numbers up to this.
  • 256 levelsexample (example number: Worked out: every whole number from 0 to 255, counting both ends.) · Worked out: every whole number from 0 to 255, counting both ends.
  • 256 patternsexample (example number: Worked out: two multiplied by itself eight times, one doubling per bit of a byte.) · Worked out: two multiplied by itself eight times, one doubling per bit of a byte.
  • 16,777,216 colorsexample (example number: Worked out: 256 levels × 256 levels × 256 levels.) · Worked out: 256 levels × 256 levels × 256 levels.
  • 0w3.org ·2026 · Red level of the named color teal, from the named colors table in CSS Color Level Four.
  • 128w3.org ·2026 · Green level of the named color teal.
  • 128w3.org ·2026 · Blue level of the named color teal.
  • 65unicode.org ·2026 · Capital A's number in Unicode (written forty-one in base sixteen on the chart).
  • 66unicode.org ·2026 · Capital B's number in Unicode (forty-two in base sixteen).
  • 2,147,483,647 viewscbsnews.com ·2014 · Where YouTube's view counter topped out, as CBS News reported in December 2014: the biggest thirty-two-bit whole number with one bit kept for plus or minus.
  • 8 bitsexample (example number: Lab start: one byte.) · Lab start: one byte.
  • 1 bitexample (example number: Lab preset: a single bit.) · Lab preset: a single bit.
  • 24 bitsexample (example number: Worked out: three bytes of eight bits, one byte per color light.) · Worked out: three bytes of eight bits, one byte per color light.
  • 31 bitsexample (example number: Worked out: YouTube's old counter had thirty-two bits (as CBS News reported) and kept one for plus or minus.) · Worked out: YouTube's old counter had thirty-two bits (as CBS News reported) and kept one for plus or minus.
  1. Lessons›
  2. The school›
  3. How computers work
  • ·Next: Squeezing a photo: how compression works