The colour coding of wires is a standardized visual system that identifies the electrical function and voltage level of a conductor within a circuit. In a real installation, correct color coding changes a chaotic, dangerous guessing game into a predictable, safe system where any technician instantly knows which wire carries line voltage, which returns current, and which provides a fault path. Beginners most commonly confuse the equipment grounding conductor (bare or green) with the grounded neutral conductor (white or grey), assuming both are safe to touch; this is a lethal misconception because the neutral carries active return current under normal load and can present a shock hazard if the circuit is broken upstream.
The Core Standard: NEC vs. IEC Conductor Colors
Wire color standards are strictly governed by regional electrical codes. In North America, the National Fire Protection Association (NFPA) dictates the National Electrical Code (NEC), while the UK and EU follow the IEC 60446 standard (harmonized in the UK in 2006). Mixing these standards in a single panel is a severe code violation and a primary cause of international equipment damage.
| Function | US / Canada (NEC) | UK / EU (IEC 60446) | Common Insulation Types |
|---|---|---|---|
| Hot / Line 1 (120V/230V) | Black | Brown | THHN, NM-B, XHHW |
| Hot / Line 2 (240V/400V) | Red | Black | THHN, NM-B, XHHW |
| Neutral (Grounded) | White or Grey | Blue | THHN, NM-B, XHHW |
| Earth Ground (Equipment) | Bare Copper or Green | Green/Yellow Stripe | Bare, THHN |
For 480V three-phase systems in the US, the hot colors shift to Brown, Orange, and Yellow (often remembered by the mnemonic 'BOY'), while the neutral remains grey. High-leg delta systems introduce a wild leg (typically 208V to neutral) which the NEC strictly requires to be colored Orange.
Where You Meet This in Practice
You will encounter strict adherence to these colors in modern residential rough-ins, but practical field conditions often introduce variations that require careful interpretation:
- NEMA 14-50 Receptacles (EV Chargers & Ranges): These 240V/120V outlets require four wires: Black (Hot A), Red (Hot B), White (Neutral), and Bare/Green (Ground). The neutral is required here because the appliance uses 120V for control boards and lights, while using 240V for the heating elements or main inverter.
- 3-Way Switch Travelers: In a 3-way switch setup using 12/3 NM-B cable, the red and black wires act as 'travelers' carrying switched hot between the two switches. The NEC does not mandate specific colors for travelers, but red and black are the universal field standard.
- Switch Loops in Older Homes: In pre-2011 wiring, a 2-wire cable (Black and White) was often run from a ceiling fixture down to a wall switch. The white wire was used as the hot feed down to the switch, and the black wire returned the switched hot to the fixture. Modern code requires the white wire in this scenario to be wrapped in black electrical tape to re-identify it as a hot conductor.
Worked Example: The Multi-Wire Branch Circuit (MWBC) Neutral
To understand what color coding actually changes in a circuit's physics, consider a Multi-Wire Branch Circuit (MWBC). An MWBC uses a 12/3 NM-B cable (Black, Red, White, Bare) connected to a 20A double-pole breaker to supply two separate 120V circuits that share a single neutral.
The Scenario:
- Phase A (Black wire) supplies a kitchen mixer drawing 15A.
- Phase B (Red wire) supplies a toaster drawing 12A.
Because the black and red wires are connected to opposite legs of the 240V split-phase panel, their AC sine waves are 180 degrees out of phase. The currents effectively cancel each other out on the shared white neutral wire. The neutral only carries the unbalanced load:
Neutral Current = |15A - 12A| = 3A
If an installer ignores the red/black color coding and connects both the Black and Red wires to the same phase (for example, using two single-pole breakers on the same panel leg, or a non-handle-tied tandem breaker on a single phase), the sine waves are now in phase. They no longer cancel; they add together.
Neutral Current = 15A + 12A = 27AThe white 12 AWG neutral wire is now carrying 27A, but it is only rated for 20A (in the 60°C column for NM-B). The wire will overheat, the insulation will melt inside the wall, and a fire will start. Crucially, the breakers will not trip, because the black wire is only seeing 15A and the red wire is only seeing 12A. Correct color coding and breaker handle-tying prevent this exact failure mode.
Common Confusions and Code Violations
Even experienced DIYers make specific color-coding errors that fail inspection or create latent hazards:
- Using Green or Bare for Current-Carrying Conductors: NEC 250.119 strictly prohibits using green, green with yellow stripes, or bare copper for any wire that carries normal circuit current. If you run out of black THHN in a conduit and use green to pull a hot wire to a motor, you have created a massive shock hazard for the next person who assumes the green wire is safe to touch.
- Faded Neutral Wires: In older panels, white NM-B insulation can turn yellowish-brown due to prolonged exposure to heat (often from being bundled tightly near the main breaker). While the wire is still functionally a neutral, an inspector may flag it, and it complicates troubleshooting. Always verify with a multimeter rather than trusting discolored insulation.
- Improper Re-identification: If you use a white wire as a hot conductor (permitted only in specific cable assemblies like switch loops or 240V pure loads), NEC 200.7(C) requires you to permanently re-identify it at every termination point using paint, tape, or heat shrink. A single piece of loose black electrical tape halfway down the wire does not satisfy code.
Frequently Asked Questions About Wire Colour Coding
Can I use a white wire as a hot wire in a switch loop?
Yes, but only under specific conditions. When using a 2-conductor cable (like 14/2 NM-B) to create a switch loop from a ceiling fixture to a wall switch, the white wire must be used as the continuous hot feed down to the switch, and the black wire returns the switched hot to the light. You must permanently re-identify the white wire with black tape or marker at both the fixture and the switch to indicate it is a hot conductor. Note that the 2020 NEC update now requires a neutral wire at most switch locations for smart switches, making traditional 2-wire switch loops largely obsolete in new construction.
What colour is the ground wire in older UK installations?
Prior to the 2006 harmonization with IEC standards, UK fixed wiring used red for live, black for neutral, and green (or bare copper) for the earth ground. If you are working in a UK home built before 2006, you will frequently encounter these legacy colors. The UK Health and Safety Executive (HSE) strongly advises treating older installations with extreme caution, as the old black neutral looks identical to the modern IEC black Line 2 (hot) conductor, creating a severe shock risk if mixed with newer wiring.
Why do some 240V appliances not have a white neutral wire?
Pure 240V loads, such as traditional electric baseboard heaters or older residential water heaters, do not require a neutral wire because they do not use any 120V components. They only use two hot wires (Black and Red) and an equipment ground (Bare/Green). The circuit operates entirely across the 240V potential difference between the two hot legs. However, modern appliances like dryers and ranges almost always require a 4-wire connection (including a white neutral) to power 120V control boards, timers, and interior lights.
Is it safe to use a wire with faded or discolored insulation?
Electrically, the copper inside is fine, but visually, it compromises safety. White insulation that has turned yellow or brown usually indicates the wire has been subjected to excessive heat, either from an overloaded circuit, poor termination torque, or being bundled too tightly without applying NEC 310.15 derating factors. While you don't necessarily need to rip it out of the wall immediately, you should investigate the root cause of the heat. For safety, always use a non-contact voltage tester and a multimeter to verify the wire's actual function, rather than relying on faded color coding.






