Standard RGB LEDs have 4 leads and come in two formats
1 common Anode
2 common Cathode
Pins
1: Red
2: Anode (Longest Lead)
3: Green
4: Blue
Arduino RGB LED Tutorial
RGB LEDs with Arduino - Standard & NeoPixel