Writing an RGB colour in binary
The RGB colour (255, 128, 0) written in binary. Each number becomes its own 8-bit byte for red, green and blue, and the three bytes are joined together to make one pixel.
Understanding Writing an RGB colour in binary in ACARA Digital Technologies Years 7–8
What it does: A single RGB number from 0 to 255 fits exactly in one 8-bit byte. The number 255 is the biggest, so all 8 bits are 1. Convert each number to its own byte, then keep the order red, green, blue. 255 gives 11111111, 0 gives 00000000 and 128 gives 10000000. Each channel gets one byte of 8 bits. The 24 bits are made up of three channels: 3 x 8 = 24. 255 is the biggest 8-bit number, so every bit is 1. 10000000 is 128. Every channel must use a full 8 bits, so we pad with leading zeros: 0 becomes 00000000.
Common mistakes: Each RGB channel is stored in one byte, and a byte is 8 bits, not 4. The comment should say 'One byte = 8 bits per channel'. 255 in binary is 11111111 (all eight bits on). 11111110 is 254. The line should be red = 255 -> 11111111.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 153–172) and word search (Modules 153–188).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
11111111 10000000 00000000Fill in the Blanks
Spot the Error
Student with a class code? Join your class →