The electric wiring color code dictates the specific function of every conductor in a circuit, preventing short circuits, shocks, and fires. In the US and Canada (NEC standard), black is typically hot, white is neutral, and bare or green is ground. In Europe and the UK (IEC standard), brown is hot, blue is neutral, and green/yellow is ground. Below are the complete, data-dense reference tables, followed by the edge cases and faded-wire protocols that separate safe installations from hazardous ones.
The Master Electric Wiring Color Code Reference Tables
Use the table that corresponds to your region's governing electrical standard. North America follows the National Electrical Code (NFPA 70 / NEC), while the UK, Europe, and most international territories follow IEC 60446 and local adoptions like BS 7671.
Table 1: North America (NEC / CEC) AC & DC Conductors
| Function | 120/240V AC (Single Phase) | 277/480V AC (Three Phase) | DC Power (Solar/Battery) |
|---|---|---|---|
| Hot / Line 1 | Black | Brown | Red or Black |
| Hot / Line 2 | Red (or Blue in 3-phase) | Orange (or Violet) | White or Black (w/ red tape) |
| Hot / Line 3 | Blue | Yellow | N/A |
| Neutral | White or Gray | White or Gray | White |
| Ground / Earth | Bare, Green, or Green/Yellow | Bare, Green, or Green/Yellow | Bare or Green |
| High-Leg (Delta) | N/A | Orange (208V to ground) | N/A |
Table 2: International (IEC 60446) & UK (BS 7671) AC & DC Conductors
| Function | 230V AC (Single Phase) | 400V AC (Three Phase) | DC Power |
|---|---|---|---|
| Hot / Line 1 | Brown | Brown | Brown |
| Hot / Line 2 | N/A | Black | Gray |
| Hot / Line 3 | N/A | Gray | N/A |
| Neutral | Blue | Blue | Blue |
| Ground / Earth | Green/Yellow striped | Green/Yellow striped | Green/Yellow striped |
Regional Variants and the 'Rows People Get Wrong'
Memorizing the tables above is only half the battle. Real-world wiring involves legacy installations, switch loops, and multi-way circuits where the standard electric wiring color code is intentionally bent or historically outdated.
The Old UK vs. New UK Trap
If you are working in a UK home built before 2004, you will encounter the legacy color code: Red (Live), Black (Neutral), and Green (Earth). In 2004, the UK harmonized with the IEC standard (Brown, Blue, Green/Yellow), with a transition period ending in 2006.
The Danger: A DIYer might see a black wire in an old UK ceiling rose and assume it is a hot wire (because black is hot in the US/NEC). In the old UK system, that black wire is the neutral. Always verify the era of the installation. Electrical Safety First strongly recommends treating any mixed-color UK installation as a high-risk scenario requiring professional verification.
The NEC 'White as Hot' Switch Loop
In North American 120V circuits, white is strictly reserved for the grounded neutral conductor. However, when running a 2-wire cable (like 14/2 NM-B) from a switch to a light fixture, the white wire is often used as the 'switched hot' returning power to the light.
The Rule: NEC Article 200.7(C)(2) explicitly requires that any white wire used as an ungrounded (hot) conductor must be permanently re-identified at both ends with black tape, black paint, or another effective means.
The Mistake: Installers frequently forget the tape at the fixture canopy. When you open the box later, you see a white wire connected to the black hot wire, assume it's a neutral, and get shocked when you touch it while the switch is on.
The High-Leg Delta 'Orange' Row
In older US commercial buildings with 240V 3-phase Delta service, one of the phases (usually Phase B) will read 208V to ground instead of the standard 120V. NEC 215.12(D) mandates this 'high leg' or 'wild leg' must be identified with Orange insulation or orange tape. Connecting a standard 120V single-phase load to the orange high-leg will instantly destroy the equipment and start a fire.
Safe Interpretation When Markings are Faded or Missing
Insulation fades, tapes peel off, and previous owners make undocumented modifications. Never trust the electric wiring color code blindly if the installation is older than five years or shows signs of tampering. Follow this verification protocol:
Step 1: The Non-Contact Voltage Test
Before removing any wire nuts or terminal screws, use a Non-Contact Voltage Tester (NCVT) like the Fluke 1AC-II or Klein NCVT-3. Test a known live circuit first to verify the tool's battery and sensor are working, then test the suspect wires. Note that NCVTs can give 'ghost voltage' readings on dead wires running parallel to live wires in the same conduit.
Step 2: The Digital Multimeter (DMM) Verification
To definitively identify a conductor when colors are missing or misleading:
- Set your DMM: Select AC Voltage (V~) with a range of at least 200V (or auto-ranging).
- Establish a Ground Reference: Place the black (COM) probe on a known, bare equipment grounding conductor or the metal panel chassis (if verified bonded).
- Test the Suspect Wire: Touch the red probe to the exposed copper of the unmarked wire.
- Interpret the Reading:
- ~120V (or ~230V in IEC regions): The wire is an energized Hot/Line conductor, regardless of its insulation color.
- 0V to 2V: The wire is likely a Neutral or Ground. To distinguish between the two, test continuity (with power OFF) between the suspect wire and the main neutral bus bar.
- ~40V to 90V (Phantom Voltage): The wire is likely a disconnected or 'floating' neutral/switch leg picking up inductive coupling from adjacent hot wires. Use a low-impedance (LoZ) multimeter setting to bleed off the ghost voltage and confirm it reads 0V.
Step 3: Proper Re-Identification
If you discover a white wire functioning as a hot, or a white wire used as a traveler in a 3-way switch circuit, you must correct the code violation before closing the box. Do not just wrap a single, thin ring of electrical tape at the very tip of the insulation. Wrap the tape so it covers at least 1 inch of the wire insulation and extends slightly past the stripped copper shoulder, ensuring the re-identification is visible to anyone who strips the wire back in the future. For a permanent, professional finish, use a black or red felt-tip marker specifically rated for electrical insulation marking, or heat-shrink tubing slipped over the conductor before termination.






