The LED light wire color code depends entirely on which side of the power supply you are wiring. Line-voltage AC feeding the driver follows strict regional electrical codes, while the low-voltage DC output to the LED strip or module follows electronics industry conventions that are frequently ignored by cheap manufacturers. Below is the complete master reference before we break down the regional variants and testing procedures.
The Master LED Light Wire Color Code Table
This table covers the three distinct circuit types you will encounter in a complete LED lighting installation: the AC mains input, the DC low-voltage output, and the control/data lines for color-changing or addressable strips.
| Circuit Type | Function / Symbol | US / NEC Color | EU / IEC Color | Practical Notes & Edge Cases |
|---|---|---|---|---|
| AC Mains | Line / Hot (L) | Black or Red | Brown | Feeds the LED driver. Never switch the neutral. |
| AC Mains | Neutral (N) | White or Gray | Blue | Return path. Must be bonded to ground at the service panel only. |
| AC Mains | Earth Ground (PE / ⏚) | Bare, Green, or Green/Yellow | Green/Yellow | Safety ground for the driver chassis. Mandatory for metal-housed drivers. |
| DC Low-Voltage | Positive (+ / VCC) | Red | Red | Standard for 12V/24V. Warning: Cheap pigtails sometimes use White for (+). |
| DC Low-Voltage | Negative (- / GND) | Black | Black | Common ground for single-color and RGB strips. |
| RGB / RGBW | Red Channel (R) | Red | Red | Carries PWM signal or DC+ for the red diodes. |
| RGB / RGBW | Green Channel (G) | Green | Green | Carries PWM signal or DC+ for the green diodes. |
| RGB / RGBW | Blue Channel (B) | Blue | Blue | Carries PWM signal or DC+ for the blue diodes. |
| RGBW | White Channel (W) | White or Yellow | White or Yellow | Dedicated warm/cool white diodes. Yellow is used to avoid confusion with the main V+ wire. |
| Addressable | Data In (DIN / DI) | Green, White, or Blue | Green, White, or Blue | Carries 5V logic signals (e.g., WS2812B). Trust the PCB silkscreen over wire color. |
Regional Standard Variants & Rows People Get Wrong
While the DC side of LED wiring is relatively standardized globally, the AC mains side is strictly governed by regional electrical codes. Confusing these can result in a short circuit, a tripped breaker, or a severe shock hazard.
Which Standard Applies to Your Region?
- North America (NEC / NFPA 70): Uses Black/Red for Hot, White/Gray for Neutral, and Bare/Green for Ground. NFPA 70 (National Electrical Code) strictly enforces these colors for branch circuits.
- Europe, UK (Post-2004), and Australia (IEC 60446): Uses Brown for Live, Blue for Neutral, and Green/Yellow for Earth. The UK harmonized with the IEC standard in 2004.
- Old UK (Pre-2004): If you are retrofitting LEDs in an older British home, you may encounter Red (Live), Black (Neutral), and Green (Earth). Treat old Black wires as Neutral, not DC Ground.
The "Rows People Get Wrong" Notes
Even experienced makers stumble on these specific LED wiring scenarios:
- The "Black Wire" Context Trap: In US AC wiring, Black is Hot (120V). In DC electronics, Black is Negative/Ground (0V). If you are splicing a DC LED driver output and an AC mains cable in the same junction box, a momentary lapse in concentration can lead to feeding 120V AC into the 12V DC side of your LED strip, instantly vaporizing the copper traces.
- The 2-Wire DC Pigtail Anomaly: Many cheap, bulk-imported 12V LED pigtails use Red and White instead of Red and Black. In these cases, Red is (+) and White is (-). However, in US AC wiring, White is Neutral. Always verify imported pigtails with a multimeter before connecting.
- Common Anode vs. Common Cathode RGB: Most 4-pin RGB strips are Common Anode (the 12V+ is shared, and the R/G/B wires are switched to ground). If you buy a rare Common Cathode strip, the Black wire is shared, and R/G/B carry the positive voltage. Wiring a common cathode strip to a common anode controller will result in the colors behaving inversely or failing to light.
Safe Interpretation When Markings Are Faded or Missing
Never trust the insulation color on a salvaged LED strip, a sun-faded outdoor fixture, or an unbranded bulk spool from an online marketplace. According to Electrical Technology wiring standards, manufacturer deviations are common in low-voltage DC accessories. Here is the bench-tested procedure to identify unknown LED wires safely.
Step 1: Identify AC Mains Wires (De-Energized)
Turn off the breaker and verify with a non-contact voltage tester. Set your digital multimeter (DMM) to Continuity mode. Probe the bare/green wire against the metal chassis of the LED driver. A reading near 0 Ω confirms the Earth Ground. The remaining two wires are Line and Neutral; for most modern switch-mode LED drivers, these are non-polarized, but if the driver specifies L and N, use the original plug wiring or trace the internal fuse to identify the Line side.
Step 2: Identify DC Polarity on 2-Wire Strips
Set your DMM to DC Voltage (20V or 200V range). Power the driver. Probe the two output wires. If the meter reads a positive voltage (e.g., +12.1V), the red probe is touching the Positive (+) wire. If it reads a negative voltage (e.g., -12.1V), the probes are reversed. Mark the positive wire with red electrical tape immediately.
Step 3: Map RGB and Addressable Pins Without Burning Diodes
Do not use the continuity test to find RGB channels, as the DMM's test voltage can sometimes forward-bias and dimly light the LEDs, or worse, damage sensitive addressable chips. Instead, use the Diode Test mode (indicated by a triangle and line symbol on your DMM).
Touch the black probe to the suspected common ground, and tap the red probe to the other wires. The DMM will display the forward voltage drop (typically 1.8V to 3.3V for LEDs) and the strip will safely illuminate a single color at very low brightness, allowing you to map Red, Green, Blue, and White accurately.
LED Light Wire Color Code FAQs
What color is the positive wire on a standard 12V LED light?
In 90% of applications, the positive wire on a 12V or 24V DC LED light is Red. However, in automotive, marine, and cheap imported architectural lighting, you will frequently encounter a White wire used for positive, paired with a Black negative. In some ultra-cheap 2-wire setups, both wires are Black, but one features a dashed white stripe or printed text along the insulation jacket—that striped/textured wire is almost always the positive (+) lead. Always verify with a multimeter if the wires are not explicitly Red and Black.
How do I wire a 4-pin RGBW LED strip if the colors don't match the controller?
Do not rely on the wire insulation color to match the controller terminals. Instead, look at the copper contact pads on the LED strip itself or the silkscreen printing on the PCB (e.g., +V, R, G, B, W). Match the physical pin order on the strip to the physical pin order on your controller's output block. If your controller is labeled V+ | G | R | B | W but your strip is +12V | R | G | B | W, you must cross the wires at the connector block to match the logical functions, ignoring the colors of the wire jacket entirely. As noted in advanced Adafruit Neopixel guides, trusting the PCB silkscreen over wire color is the golden rule of LED electronics.
Does the wire color code change for addressable WS2812B or SK6812 LEDs?
Yes, addressable LEDs (like the WS2812B, WS2815, or SK6812) use a 3-wire or 4-wire system that abandons standard RGB color coding. A standard 3-wire addressable strip uses:
• Red: VCC (5V or 12V Positive)
• White or Black: GND (Ground)
• Green, Blue, or Yellow: DIN (Data In)
The Data line carries a high-frequency, 5V logic PWM signal that daisy-chains through every LED's internal microcontroller. Because manufacturers use Green, Blue, or White interchangeably for the Data line, you must read the PCB silkscreen (looking for DIN, DI, or DATA) to avoid feeding 5V power into a microcontroller's data input pin, which will instantly destroy the first LED in the chain.






