11 November 2026
How Does an RGB LED Mix Colors? Three Tiny Lights Make a Whole Rainbow
At night, your child switches on the bedside lamp and the room fills with soft purple light. Yesterday the same lamp glowed ocean blue. They press a button on the remote and the lamp turns warm yellow, then pink, then back to white. One small lamp, a dozen different colors — how does it do that, when the ordinary LED from their first lesson only ever shines in one color?
The secret is in three letters: RGB — Red, Green, Blue. An RGB LED is not one magical color-changing bulb. It is three tiny bulbs hidden inside a single case, and the color your child sees is what happens when all three shine at once, each one brighter or dimmer than the others.
Mixing light is not like mixing paint
Before talking about the LED, parents need to help their child undo a very common misunderstanding. In art class, they learn that yellow paint mixed with blue paint makes green. That is mixing pigments — paint, watercolor, colored pencils. But light mixes by the opposite rule, called additive mixing: the more light you add, the brighter the color gets, not darker.
Picture three flashlights shining on the same patch of white wall. The red flashlight makes a red circle, the green flashlight makes a green circle. Overlap the two circles and the shared patch does not turn brown or dark — it turns yellow. Add the blue flashlight and the spot where all three overlap turns white. Red plus green makes yellow, green plus blue makes cyan, red plus blue makes magenta, and all three together make white. That is why a TV or phone screen only needs red, green, and blue to show every color your child sees each day.
An RGB LED does exactly that flashlight trick, shrunk into a bulb the size of a fingertip. The three base colors are always there; the color your child sees is just the "mixing recipe" of those three.
What is inside an RGB LED?
Imagine opening an RGB LED — actually, don't open one, just picture it with your child — inside the clear plastic case sit three tiny light-emitting chips side by side: one red, one green, one blue. The LED has four legs: one shared leg and three separate legs, each separate leg controlling one color. Power the red leg and the red chip lights up. Power all three legs and all three chips shine together.
There are two types of RGB LED: common anode and common cathode. They differ in whether the shared leg connects to positive power or to ground, and the wiring flips around accordingly. Beginners only need to remember one thing: check which type they are holding before plugging in wires, because wiring the shared leg wrong is the most common mistake — and luckily it only leaves the LED dark instead of damaging it.
Because the three colors sit so close together in one case, your child's eyes cannot pick out three separate points of light — the eyes automatically blend them into a single color. That is also how a screen works: every pixel is three tiny red, green, and blue cells, and your child's eyes blend them into a full-color picture.
PWM: switching on and off really fast to change brightness
Three colors are in place, but how do you mix orange, pale pink, or deep ocean blue? An LED has no brightness knob like a desk lamp. It only knows on or off. The trick is to switch it on and off very fast — so fast your child's eyes cannot see the flicker and only perceive it as "dimmer".
This technique is called PWM, and your child already met it when learning about motors: switch the LED on for part of each cycle and off for the rest, repeating hundreds of times per second. On 100% of the time means full brightness, on 50% means half brightness, on 10% means a faint glow. Arduino sets that on-off ratio with a number from 0 to 255 for each color — 0 is fully off, 255 is fully on.
Now the color recipe becomes three numbers. Red 255, green 0, blue 0: pure red. Red 255, green 165, blue 0: orange. Red 255, green 255, blue 255: white. Red 255, green 192, blue 203: pale pink. With just three numbers, your child can mix 256 times 256 times 256 — more than 16 million colors. Every color they like has a three-number "code", and that is exactly the color code designers use every day.
Where does your child see RGB LEDs every day?
Once your child knows how to look, RGB LEDs are everywhere. The LED strip behind the TV changes color with the movie, the bedside lamp shifts with their mood, the computer keyboard glows in every color, the smart speaker's light ring pulses with the music. Even the screen they are reading this on is millions of RGB dots mixing colors non-stop.
More interestingly, robots use RGB LEDs to "talk" to people. A vacuum robot blinks red when stuck, green when working well, yellow when the battery is low. One three-color bulb replaces a whole display screen — cheap, simple, and instantly understood.
Try it at home tonight: the flashlight color-mixing game
No kit needed — you can play the light-mixing game with your child tonight. You need three flashlights and three pieces of colored cellophane: red, green, and blue. Wrap each flashlight in one color, turn off the room lights, and shine all three on the same patch of white wall.
Shine the red and green flashlights so they overlap: the shared patch turns yellow, and your child will be surprised, because in the paint box yellow and green never make yellow like that. Add the blue flashlight and the spot where all three circles overlap turns white. Move the flashlights closer and further apart and the color in the overlap changes with each light's brightness — exactly how Arduino changes three PWM numbers to mix a color.
Then challenge your child to mix magenta using only the flashlights' positions, or to mix orange. They will discover the rule by themselves without anyone lecturing: to get the color you want, add or take away each base color until it looks right.
How does your child learn this at ManuStem?
At stem.manusignal.com, your child wires up an RGB LED circuit right in the browser — no kit to buy, no delivery to wait for. The 3D preview shows the bulb changing color with every number they type, the code runs and the LED lights up in exactly the color they programmed, and if they wire the shared leg wrong, the AI coach points out the mistake and suggests a fix in Vietnamese, like a teacher sitting beside them.
The course has 28 lessons — 8 in the Component Lab and 20 in the Competition Robot track — for children aged 8 and up, in Vietnamese and English, with 4 free trial lessons. The RGB LED is one of the components they meet after the ordinary LED and the push button, and later they use this very LED as the status light for their own competition robot, then program robots in C++ on the ESP32 kit for ages 13 and up.
Tonight, when your child switches on the bedside lamp and picks a favorite color, they will know that color does not just happen — it is three numbers, three tiny bulbs, and a little bit of mathematics about light.
Let your child mix colors of their own today — no kit needed, try 4 free lessons at stem.manusignal.com.