An RGB LED contains three separate dies (Red, Green, Blue) sharing a common pin. Each channel needs its own current-limiting resistor.
Common Cathode: shared GND pin, HIGH = ON.
Common Anode: shared V+ pin, LOW = ON (PWM inverted).
Typical Vf: Red ≈ 2.0V, Green ≈ 3.2V, Blue ≈ 3.2V