In the US and Canada (NEC), the standard AC color code electrical wire scheme uses black or red for hot (line), white or gray for neutral, and bare copper or green for ground. In Europe and most of the world (IEC), brown is hot, blue is neutral, and green-and-yellow is ground. Never trust color alone on older wiring; always verify with a meter. Below is the complete reference chart.

The Master Electrical Wire Color Code Reference Table

This table covers the primary alternating current (AC) and direct current (DC) wiring standards. Use this as your bench and jobsite quick-reference.

Function US / Canada (NEC) Europe / Global (IEC 60446) UK (Post-2004 Harmonized) UK (Pre-2004 Old)
AC Hot (Line 1) Black Brown Brown Red
AC Hot (Line 2) Red Black Black Yellow
AC Hot (Line 3) Blue Grey Grey Blue
AC Neutral White or Gray Blue Blue Black
AC Ground (PE) Bare, Green, or Green/Yellow Green/Yellow Stripe Green/Yellow Stripe Green
DC Positive (+) Red (or Black if ungrounded) Brown Brown Red
DC Negative (-) Black (or White if grounded) Blue Blue Black
DC Ground Bare or Green Green/Yellow Stripe Green/Yellow Stripe Green

Regional Standards: Which Code Applies to You?

Wire colors are not universal. The insulation color on a spool of THHN or NM-B cable is dictated by the regulatory body governing your region's electrical installations.

US and Canada (NEC / CEC): Governed by NFPA 70 (National Electrical Code) in the US and the Canadian Electrical Code. The NEC does not strictly mandate colors for AC hot wires (except the high-leg delta), but NFPA 70 strictly enforces white/gray for neutral and green/bare for ground. Black/red/blue is the universal trade practice for 120/208V or 120/240V systems.
Europe and Global (IEC): Governed by IEC 60446 (now superseded by IEC 60445). Brown, black, and grey are the line colors. Blue is strictly neutral. Green-and-yellow is strictly protective earth (PE). You will see this on imported appliances, IEC power cords, and modern EU wiring.
United Kingdom (BS 7671): The UK harmonized with IEC colors in 2004. If you are working in a home built before 2004, you will encounter the old UK colors (Red/Yellow/Blue for hot, Black for neutral). The UK Health and Safety Executive (HSE) provides excellent guidance on transitioning between old and new UK color codes in consumer units.

The "Rows People Get Wrong" Notes

Color codes look simple on paper, but jobsite realities and specific code exceptions trip up even experienced DIYers. Here are the most common pitfalls:

  • The White "Switch Loop" Hot: In older US wiring, a 2-wire cable (black and white) was often run up to a ceiling light switch. The white wire was used to carry the hot feed down to the light. NEC allows this only if the white wire is permanently re-identified with black tape or paint at both ends. If you see a white wire connected to a black wire with a wire nut in a switch box, it is a hot wire, not a neutral.
  • The 3-Phase Delta High-Leg (Orange): In a 240V 3-phase delta system with a center-tapped neutral, you get 120V on two phases, but 208V to ground on the third phase (the "high leg" or "wild leg"). NEC 110.15 and 215.8 mandate this high-leg must be colored Orange. Wiring a 120V circuit to an unidentified high-leg will instantly destroy the appliance and cause a fire.
  • DC Negative vs. AC Neutral: In automotive and off-grid solar DC systems, black is almost universally negative. In AC home wiring, black is hot. Mixing up AC and DC conventions when wiring a hybrid inverter's AC input vs. DC battery input is a classic way to blow up the inverter's internal MOSFETs.
  • Faded THHN in Conduit: Red THHN wire exposed to UV light or high heat in conduit often fades to a pale pink or orange over a decade. Blue can fade to purple. Never assume a faded pink wire is a low-voltage control wire; treat it as a faded red hot wire until proven otherwise.

Safe Interpretation When Markings Are Faded or Missing

When you open a junction box and the wire colors are painted over, faded, or covered in drywall mud, you must abandon the color code and rely on measurement.

Safety First: Never assume a wire is dead based on its color. A white wire can be hot, and a green wire could be miswired as a current-carrying conductor by a previous owner. Always use a Non-Contact Voltage Tester (NCVT) for a preliminary sweep, followed by a CAT III or CAT IV digital multimeter for definitive verification.

The Verification Protocol:

  1. Test Line-to-Ground: Set your multimeter to AC Voltage. Measure from the unknown wire to a known, verified ground (like a bare copper wire in the same box or a grounded metal box). A reading of ~120V (US) or ~230V (EU/UK) means the wire is a Hot (Line) conductor.
  2. Test Neutral-to-Ground: Measure from the suspected neutral to ground. It should read very close to 0V (typically < 2V under load). If it reads line voltage, the "neutral" is actually a hot wire, or you have a severe open-neutral fault upstream.
  3. Test Switched Legs: If a wire reads 0V to ground, but reads ~120V/230V to a known hot wire, it is likely a neutral or a switched leg that is currently in the "off" position. Toggle the wall switch and re-test to ground. If it jumps to line voltage, it is a switched hot.

Decision Path: Identifying an Unknown Wire

Use this decision tree when you encounter a wire with missing, faded, or non-standard color coding. Follow the steps sequentially to reach a definitive identification and corrective action.

Condition / Measurement Diagnostic Result Required Action (Concrete Pick)
Reads ~120V/230V to known ground. Wire is an ungrounded Hot (Line) conductor. Wrap the wire with 3M Super 33+ Black Vinyl Tape at both ends and label it "HOT". If it's a switch leg, use Red tape.
Reads 0V to ground, but continuity to the neutral bus bar with power OFF. Wire is a grounded Neutral conductor. Leave as-is if white/gray/blue. If it's black or another color, wrap with White Vinyl Tape to re-identify as neutral per NEC 200.6.
Reads 0V to ground, 0V to neutral, but has continuity to a light fixture terminal. Wire is a Switched Hot (currently OFF). Turn power on, flip switch. If it reads line voltage, wrap with Red Vinyl Tape to identify as a switched hot leg.
Reads 208V to ground in a 3-phase panel. Wire is a High-Leg Delta conductor. Immediately de-energize. Re-identify with Orange Vinyl Tape or heat shrink. Do not connect to any 120V breakers.
Wire is green/yellow stripe in a DC solar array. Wire is an Equipment Grounding Conductor (EGC). Terminate to the DC ground busbar using a ratcheting crimp tool and an appropriately sized ring terminal (e.g., 10 AWG ring for #10 wire).

By strictly following measurement protocols and re-identifying non-standard wires with high-quality vinyl tape (never use cheap masking tape or duct tape, which degrades and leaves residue), you ensure the next person working on the circuit—whether it is you in five years or a licensed electrician—can trust the color code electrical wire standards in your installation.