Misinterpreting a wire's function is the fastest way to trip a breaker, fail an inspection, or suffer a fatal shock. The correct home wiring color code depends entirely on your region's governing electrical standard. Below is the definitive reference for North American (NEC), European (IEC), and United Kingdom (BS 7671) wiring colors, followed by field-tested rules for identifying mystery wires and handling faded insulation.
The Master Home Wiring Color Code Reference Table
This table covers standard single-phase and split-phase residential wiring. For three-phase or commercial high-voltage, refer to the specific regional notes below.
| Wire Function | US & Canada (NEC / CEC) | Europe (IEC 60446) | UK (Post-2004 BS 7671) | UK (Pre-2004 Legacy) |
|---|---|---|---|---|
| Line / Hot (Phase 1) | Black | Brown | Brown | Red |
| Line / Hot (Phase 2 / 240V) | Red | Black | Black | Yellow |
| Neutral (Grounded Conductor) | White or Gray | Blue | Blue | Black |
| Earth / Ground (PE) | Green, Green/Yellow, or Bare | Green/Yellow | Green/Yellow | Green |
| Switched Leg (from switch to load) | Any except White/Green/Bare* | Brown, Black, or Gray | Brown or Black | Red or Yellow |
*NEC 200.7(C) allows a white wire to be used as a hot switched leg ONLY if it is permanently re-identified with black or red tape/paint at both termination points.
Regional Standards: Which Code Applies to You?
Rule of Thumb: Always default to the code in effect when the building was permitted, but upgrade to current standards during any remodel. Your local Authority Having Jurisdiction (AHJ) has final say.
North America (NEC / CEC): Governed by the NFPA 70 (National Electrical Code) in the US and the Canadian Electrical Code. The NEC strictly mandates white/gray for neutrals and green/bare for equipment grounding conductors (EGC). Hot conductors can be any color except those reserved for neutral and ground, though black and red are the universal defaults for 120V/240V split-phase systems.
Europe (IEC 60446): The International Electrotechnical Commission standardizes colors across the EU. Since 2004, the harmonized colors are brown (L1), black (L2), gray (L3), blue (neutral), and green/yellow (earth). If you are working in a European home built before the mid-2000s, expect to see legacy national colors (e.g., red/black/green in older French or German installations).
United Kingdom (BS 7671): The UK adopted the IEC harmonized colors in 2004 via Amendment 2 to the 17th Edition Wiring Regulations, enforced by the Institution of Engineering and Technology (IET). Pre-2004 UK homes will feature red (live), black (neutral), and green (earth). When extending an old UK circuit, you must use the new colors but place a permanent warning label at the consumer unit (breaker panel) noting the mixed color codes.
The 'Rows People Get Wrong' Field Notes
Even experienced DIYers stumble on these specific edge cases. Here is how to avoid the most common color code violations and hazards.
1. The White Wire Used as a Hot (Switch Loops)
In older US homes, electricians often ran 14/2 or 12/2 NM-B cable from the ceiling fixture down to the wall switch. The black wire carried hot down to the switch, and the white wire carried the switched hot back up to the light. The NEC requires this white wire to be wrapped in black electrical tape at both ends. If you see a white wire connected to the brass (hot) screw on a switch or outlet, assume it is hot until proven otherwise with a meter.
2. Gray vs. White Neutrals
Both are legal neutrals, but they are not interchangeable in the same raceway. White is standard for 120V/240V residential branch circuits. Gray is typically reserved for 277V/480V commercial lighting and power. Mixing a gray neutral from a 277V circuit with white neutrals from 120V circuits in the same panelboard violates NEC 300.3(C) and creates a severe shock hazard for anyone working on the panel.
3. The High-Leg Delta (Orange Wire)
If you are working in a light commercial space or a residential building with a 240V 3-phase delta service, you will encounter a 'wild leg' or 'high leg.' This phase measures 208V to neutral (instead of the standard 120V). NEC 110.15 and 215.8 strictly require this high leg to be identified by the color Orange. Never connect a standard 120V appliance to an orange wire; it will instantly destroy the appliance and cause a fire.
4. Three-Way Switch Travelers
The NEC does not mandate specific colors for traveler wires in a 3-way or 4-way switch setup. However, standard practice using 14/3 or 12/3 NM-B cable dictates using the black and red wires as travelers, the white wire as the common (or neutral, depending on the wiring method), and the bare wire for ground. Always map and label travelers with masking tape before disconnecting an old switch.
Safe Interpretation: Faded, Painted, or Missing Colors
DANGER: Never rely on visual inspection alone in homes built before 1980. Cloth-insulated wiring, early PVC, and rubber coatings degrade, turning white wires yellow/brown and black wires gray. Always treat unverified wires as energized.
When you open a junction box and the wire colors are faded, painted over by a sloppy drywaller, or completely missing, follow this verification protocol:
- De-energize and Lock Out: Turn off the breaker and use a non-contact voltage tester (NCVT) to confirm the absence of voltage at the panel.
- Verify Dead with a CAT III Meter: Use a multimeter (like a Fluke T5-1000) or a solenoid voltage tester (Wiggy). Test Hot-to-Ground, Hot-to-Neutral, and Neutral-to-Ground. A reading of 0V across all combinations confirms the circuit is dead.
- Identify the Ground: If the bare/green wire is painted over, scrape a small section of insulation near the termination. If it is bare copper, it is your Equipment Grounding Conductor (EGC). If it is tinned copper (silver-colored), it might be an old neutral—verify continuity to the panel's neutral bar.
- Re-energize to Find the Hot: If you must identify the hot wire on a live circuit, keep your hands clear, use insulated probes, and measure each mystery wire to the known ground. The wire reading ~120V (or ~230V in the UK/EU) is your Line/Hot.
- Permanently Re-Identify: Once identified, wrap the wire ends with high-quality vinyl electrical tape. Use 3M Scotch 35 series tape (approx. $4 per roll). Cheap generic tape dries out, cracks, and falls off inside a warm junction box within two years, leaving the next electrician guessing.
Decision Tree: Selecting and Identifying Wire Colors
Use this decision path to select the correct wire colors for a new installation or to safely handle an existing mystery circuit.
| Scenario / Condition | If True (Action) | Concrete Pick / Termination |
|---|---|---|
| Running a new 120V US receptacle circuit in conduit | Use individual THHN wires | Buy Black (Hot), White (Neutral), Green (Ground). Size: 12 AWG for 20A. |
| Wiring a US 240V baseboard heater (no neutral required) | Use 2-wire NM-B cable | Use 10/2 NM-B. Terminate Black to L1, White to L2 (wrap white in black tape at both ends), Bare to Ground. |
| Extending a pre-2004 UK ring main circuit | Mixing old and new colors | Use Brown/Blue/Green-Yellow (new). Place a permanent 'Mixed Colors' warning label inside the consumer unit. |
| Found a white wire on a brass (hot) screw | Assume it is a switched hot | Wrap it in black 3M Scotch 35 tape. Do not move it to the silver (neutral) screw. |
| Found an Orange wire in a US panel | Assume 208V High-Leg Delta | Do not terminate to any 120V load. Verify voltage to neutral with a CAT III meter before proceeding. |
By strictly adhering to your regional home wiring color code and properly re-identifying conductors when standards allow exceptions, you ensure your work remains safe, inspectable, and maintainable for decades.






