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

LabelNumberFunctionsLimitsCheck
Rpin 1Red cathodeverified
+pin 2Common anode (+): the longest leadverified
Gpin 3Green cathodeverified
Bpin 4Blue cathodeverified

Sources

Every pin is verified against the manufacturer's documents.

Size: Ø5 mm bulb, pins spread to 2.54; the common pin is longer (approximate).

You might also need

Similar boards