5 mm RGB LED pinout
5 mm RGB LED, common anode (4 pins), RGB LED, common anode, 5 V logic, 9.4×15.9 mm, 4 pins
verified17.10.2026
Side view, rim flat edge on the left (at red), pins down: R, common (longest), G, B.
Download PNG- Chip
- RGB LED, common anode
- Logic
- 5 V
Important
- Common anode on 3.3 V or 5 V, each color through its own resistor to a GPIO: a color is lit at LOW, in code brightness = 255 − value.
- Green and blue need 3.0–3.4 V: they are dim from 3.3 V, so they need a small resistor (33–47 Ω for 10 mA).
- A common-cathode variant exists (led-rgb-5mm-cc): it can't be told apart from outside, check with a battery.
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| R | pin 1 | Red cathode | verifiedThrough its own resistor to a GPIO: red about 150 Ω from 3.3 V for 10 mA. | |
| + | pin 2 | Common anode (+): the longest lead | verifiedOn 3.3 V or 5 V. A color is lit when its pin is LOW (inverted in code).Labelled on other revisions as: +, VCC | |
| G | pin 3 | Green cathode | verifiedThrough its own resistor to a GPIO: green and blue 33–47 Ω from 3.3 V or 180 Ω from 5 V for 10 mA. | |
| B | pin 4 | Blue cathode | verifiedThrough its own resistor to a GPIO: green and blue 33–47 Ω from 3.3 V or 180 Ω from 5 V for 10 mA. |
Sources
Every pin is verified against the manufacturer's documents.
- China Young Sun YSL-R596AR3G4B5C-C10 (SparkFun copy)datasheet, checked 17.10.2026pinout: 1 R, 2 common anode (longest), 3 G, 4 B; Vf R 1.8-2.2, G and B 3.0-3.4 V at 20 mA
- SparkFun COM-00105 LED RGB Clear Common Cathodethird-party source, checked 17.10.2026common cathode is the longest pin, second from the left
Size: Ø5 mm bulb, pins spread to 2.54; the common pin is longer (approximate).



