Bits and Bytes CS Thinking Example 4

Follow the full solution, then compare it with the other examples linked below.

Example 4

hard
A colour system uses 4 bits per colour channel (red, green, blue). (a) How many shades can each channel represent? (b) How many unique colours are possible in total? (c) Compare this to standard 8-bit-per-channel colour.

Solution

  1. 1
    Step 1: (a) 4 bits per channel โ†’ 24=162^4 = 16 shades per channel. (b) Total colours = 16ร—16ร—16=409616 ร— 16 ร— 16 = 4096.
  2. 2
    Step 2: (c) Standard 8-bit: 28=2562^8 = 256 shades per channel, 2563=16,777,216256^3 = 16,777,216 total colours. That is 4096 times more colours than the 4-bit system.
  3. 3
    Step 3: More bits per channel means smoother colour gradients but larger file sizes โ€” a classic space-quality trade-off.

Answer

(a) 16 shades per channel, (b) 4096 total colours, (c) 8-bit has 16.7 million colours โ€” 4096 times more.
Bit depth directly affects quality. More bits per channel allow finer colour distinctions but require more storage. This trade-off is central to understanding digital media representation.

About Bits and Bytes

A bit is a single binary digit (0 or 1), the smallest unit of digital data. A byte is a group of 8 bits that can represent 256 different values (0 to 255), enough to encode one text character. All digital storage and communication is measured in bits and bytes.

Learn more about Bits and Bytes โ†’

More Bits and Bytes Examples