RGB LED

An LED package with three independent red, green, and blue dies in one housing.

RGB

How it works

An RGB LED combines three distinct light-emitting diodes (Red, Green, and Blue) into a single physical package. By mixing different intensities of these three primary colors, the LED can produce virtually any color in the visible spectrum.

RGB LEDs come in two standard pinouts: Common Anode (the three LEDs share a single positive connection, and you pull the R/G/B pins to ground to turn them on) and Common Cathode (they share a single ground connection, and you apply positive voltage to the R/G/B pins).

To create custom colors, microcontrollers use Pulse Width Modulation (PWM) on the individual color pins. By rapidly turning the red, green, and blue dies on and off at different duty cycles, the human eye blends them into a single perceived hue.

Common Mistakes

Using the exact same resistor value for the Red, Green, and Blue pins. Red LEDs have a much lower forward voltage (Vf ≈ 2.0V) than Green and Blue LEDs (Vf ≈ 3.2V). With identical resistors, the Red die will draw significantly more current and overpower the other colors, resulting in a pinkish-white instead of pure white.

Common Variants

Variants for this component will be listed here soon.