Identifying electrical wires color codes correctly is the difference between a safe circuit and a lethal shock. Because global standards differ wildly, a red wire might be a 120V hot in the US, a 230V line in Europe, or a switched leg in old UK wiring. Below is the definitive reference for mains voltage conductors, followed by the edge cases that trip up even experienced DIYers.
The Master Electrical Wires Color Codes Reference Table
This table covers standard mains AC wiring. Always verify your local Authority Having Jurisdiction (AHJ) requirements, as local amendments can override national baselines. The data below reflects the NFPA 70 (NEC) for North America and the IEC 60446 standard for Europe and harmonized regions.
| Function | NEC (US/Canada) 120/240V | NEC (US/Canada) 277/480V | IEC (EU/Modern UK) | Old UK (Pre-2004) |
|---|---|---|---|---|
| Line / Hot 1 | Black | Brown | Brown | Red |
| Line / Hot 2 | Red | Orange | Black | Yellow |
| Line / Hot 3 | Blue | Yellow | Gray | Blue |
| Neutral | White / Gray | Gray / White | Blue | Black |
| Ground / Earth | Bare / Green | Green / Green-Yellow | Green-Yellow | Green |
What Each Color Means in Practice (and the Rows People Get Wrong)
Reading the table is easy; applying it in a messy, 40-year-old junction box is where mistakes happen. Here is what these colors actually dictate on the bench and in the panel, along with the specific rows that cause the most blown breakers and shocks.
The Grounding Conductor (Green, Bare, Green-Yellow)
The equipment grounding conductor (EGC) provides a low-impedance fault path back to the source to trip the breaker during a short. Under NEC 250.119, green or bare is strictly reserved for this purpose. In IEC regions, solid green is forbidden for grounding; it must be green with a yellow stripe to prevent confusion with old telecom or DC wiring.
The Neutral Conductor (White, Gray, Blue, Black)
Neutral carries the unbalanced return current. It is a current-carrying conductor and must be treated with the same respect as a hot wire. In a properly functioning 120V circuit, neutral-to-ground voltage should read less than 2V on your multimeter. If you measure 10V+ between neutral and ground, you have a loose neutral connection upstream, which is a severe fire hazard.
NEC 200.7(C) allows a white wire to be used as an ungrounded (hot) conductor in a switch loop or cable assembly, provided it is permanently re-identified (usually with black electrical tape or a marker) at both ends. If you open a single-pole switch box and see a white wire connected to the switch alongside a black wire, the white wire is likely hot, not neutral. Never assume white means neutral in a switch loop.
The High-Leg Delta (The Orange Row)
In commercial 240V 3-phase high-leg delta systems, the B-phase (high leg) measures 208V to neutral, while the A and C phases measure 120V to neutral. NEC 110.15 mandates this high leg must be colored orange. If you mistakenly land a 120V appliance on the orange leg, the 208V potential will instantly destroy the appliance and create an arc flash risk.
Safe Interpretation When Markings Are Faded or Missing
Never trust a wire's color if the jacket is degraded, painted over, or if you are working with old cloth-covered wire. Early 1900s knob-and-tube wiring often used black for neutral and white for hot—the exact opposite of modern NEC standards. Furthermore, UV exposure in attic spaces can bleach black wire jackets to a dull gray or white over decades.
The 3-Step Verification Protocol:
- De-energize and Test: Turn off the breaker. Use a Non-Contact Voltage Tester (NCVT) like the Klein NCVT-2 to verify the circuit is dead. Test the NCVT on a known live circuit first to ensure the battery hasn't died.
- Map with a Multimeter: Turn the breaker back on (keeping your hands clear of bare copper). Set a Digital Multimeter (DMM) like a Fluke 117 to AC Voltage. Measure Line-to-Neutral (should be ~120V or ~230V nominal) and Line-to-Ground (should match Line-to-Neutral exactly).
- Re-identify: Once you have positively identified the conductors, turn the power back off and apply colored heat shrink tubing or high-quality vinyl electrical tape (like 3M Super 33+) at the termination points to match modern code.
Frequently Asked Questions About Wire Colors
Can I use green wire for neutral in a pinch?
Absolutely not. NEC 250.119 strictly reserves green and green-yellow for equipment grounding. Using a green wire as a neutral (a current-carrying conductor) means your grounding system will carry normal return current. If the ground path is ever broken downstream, every metal appliance chassis connected to that circuit will become energized at 120V/230V, creating a lethal shock hazard. Always run a new cable with a proper white/gray/blue neutral if you are short on conductors.
Why is my white wire connected to a black wire in a switch box?
This is a classic "switch loop." In older wiring methods (pre-NEC 2011), power was often routed to the light fixture first, and a single 2-wire cable (black and white) was dropped down to the switch. The white wire was used to carry the hot feed down to the switch, and the black wire carried the switched hot back up to the light. In this scenario, the white wire is the constant hot, and the black wire is the switched leg. Modern code (NEC 404.2) now requires a dedicated neutral in most switch boxes, which is why 3-wire cables (black, red, white) are standard for new switch drops.
Do low voltage thermostat wires follow the same electrical wires color codes?
No. Thermostat wiring uses Class 2 circuit conventions, which are entirely separate from mains AC wiring. Standard 24V HVAC thermostat wire uses a different color code: R (Red) for 24VAC power, W (White) for heat, Y (Yellow) for cooling, G (Green) for the fan, and C (Blue or Black) for the common ground. Mixing up a 24VAC thermostat wire with a 120V mains wire will instantly fry your smart thermostat and potentially destroy the HVAC control board.






