Sarah · Rob · Mark
Red plus green equals… yellow?
Sarah says there’s no yellow in the stripes she saw, only red, green and blue, but her screen shows yellow just fine.
Rob says turn red and green all the way up, leave blue off, and your eye sees yellow. Mark says that’s not how paint works.
Rob says screens aren’t paint. Light adds up.
The short answer
Light adds: red and green at full, blue off, and your eyes see yellow. Every pixel on every screen is three little lights with a byte each telling them how bright to be. Sarah’s drop of water caught them in the act.
Try it yourself
Slide red, green and blue to match each color.
Match yellow 1 of 4
Yours
Target
Up close, one pixel is three tiny lights.
What you just did has a name
RGB
RGB stands for red, green and blue, the three colors of light every screen pixel is made of.
Each one gets a brightness from 0 to 255, one byte each, so a pixel’s color is three bytes.
Mixing light adds: red and green make yellow, all three at full make white, all three off make black.
Three bytes per pixel gives about 16.7 million possible colors.
A few more things
Why 16.7 million
256 levels of red times 256 of green times 256 of blue is 16,777,216. That’s more shades than most people can tell apart.
Light adds, paint subtracts
Paint absorbs light, so mixing colors makes things darker. Screens make light, so mixing makes things brighter. That’s why red plus green is yellow on a screen and brown in paint.
Hex colors
Web designers write colors like #FFFF00. That’s RGB in hexadecimal: FF red, FF green, 00 blue. Yellow.
Go deeper
The longer version, if you want it.
Your eyes are doing the mixing
The human eye has three kinds of color sensors, roughly tuned to red, green and blue. A screen tricks them: by sending the right mix of the three, it makes your brain see yellow even though there’s no yellow light on the screen.
That’s why screens use exactly these three. If our eyes had four kinds of sensors, like some birds, screens would need four colors of light to fool us.
Quick check
A pixel has red 0, green 0 and blue 0. What color is it?
Let’s take it slower
Imagine three flashlights, red, green and blue, pointed at the same wall. Turn on red and green and the spot looks yellow. Turn on all three and it looks white. Dim them and the colors darken. Every pixel is three of those flashlights, a dimmer on each, and the numbers are the dimmer settings.
More examples
A sunset on your phone
Zoom all the way into a sunset photo and the orange sky turns into squares. Each one has a lot of red, a medium amount of green and almost no blue. Millions of those three-number recipes, side by side, make the sky.
Dark mode
Dark mode turns most pixels to black or near-black, so all three lights are off or dim. On some screens that saves battery. Lesson 13.3 explains which.
Back to the question
So how do red, green and blue make yellow?
Show the answer
Light adds: red and green at full, blue off, and your eyes see yellow. Every pixel on every screen is three little lights with a byte each telling them how bright to be. Sarah’s drop of water caught them in the act.
One last question
Which of these would you trust?
“Every screen color is a mix of red, green and blue light.”
“Red and green light mix to make brown, like paint.”
“A pixel’s color is usually stored as three bytes.”
“All three at full brightness makes black.”
Talk Card
Talk Card · 13.1
Look at a white screen through a drop of water. It’s really red, green and blue lights, all turned up at once.
How Computers Work · pettigrewlab.com/learn


