Components / Transistors and MOSFETs / RGB LED 5 mm common cathode

RGB LED 5 mm common cathode

Red, green and blue LEDs in one package with a shared ground leg.

Colour / typeRed, green and blue in one package
Forward voltageRed about 2.0 V; green and blue about 3.0 to 3.2 V
Max continuous current20 mA per colour
Package5 mm, 4 legs
SemiconductorsReviewedMPN 5 mm RGB common cathodeUsed in 9 projects
In short

What is the RGB LED 5 mm common cathode and what is it used for?

Red, green and blue LEDs in one package with a shared ground leg. Makers use it for colour mixer.

Check common cathode vs common anode before wiring.
In the real world

Status lights, mood lights

How it works

Mixing the brightness of three colours makes almost any colour.

Key specifications

LED and switch specValue
Colour / typeRed, green and blue in one package
Forward voltageRed about 2.0 V; green and blue about 3.0 to 3.2 V
Max continuous current20 mA per colour
Package5 mm, 4 legs
PolarityLongest leg is the common cathode (to GND)

Pinout

RRed anode, through 220 Ω
Common (longest)Cathode, to GND
GGreen anode, through 220 Ω
BBlue anode, through 220 Ω

How to use it

Give each colour its own resistor and a PWM pin. Common-anode versions exist: then the long leg goes to 5 V and the logic is inverted.

void setup() {}
void loop() { analogWrite(9, 255); analogWrite(10, 0); analogWrite(11, 128); }

Applications

Alternatives

Buy at

Common questions

What is the RGB LED 5 mm common cathode used for?

In products: status lights, mood lights. In maker projects: colour mixer.

How does the RGB LED 5 mm common cathode work?

Mixing the brightness of three colours makes almost any colour.

What voltage does the RGB LED 5 mm common cathode need?

Red about 2.0 V; green and blue about 3.0 to 3.2 V.

What can I use instead of the RGB LED 5 mm common cathode?

LED 5 mm red.