In the United States, the National Electrical Code (NEC) strictly defines AC and DC wire color codes to prevent shock hazards and ensure predictable maintenance. For standard 120V/240V residential branch circuits, black or red is hot, white is neutral, and bare copper or green is ground. However, commercial 3-phase systems and specific wiring exceptions introduce critical variations that can be lethal if misinterpreted.

USA Wire Color Codes: The NEC Reference Table

The following table outlines the mandatory color codes for standard AC power, 3-phase commercial systems, and DC circuits as defined by the National Fire Protection Association (NFPA) in the NEC. This assumes standard copper conductors with THHN/THWN-2 or NM-B insulation.

System Voltage Phase / Function NEC Mandated Color Practical Application
120V / 240V 1-Phase Hot (Line 1) Black Standard residential receptacles, lighting
120V / 240V 1-Phase Hot (Line 2) Red 240V appliances, multi-wire branch circuits (MWBC)
120V / 240V 1-Phase Neutral White or Gray Return path for 120V loads
208Y/120V 3-Phase Phase A, B, C Black, Red, Blue Commercial lighting, HVAC, MWBCs
480Y/277V 3-Phase Phase A, B, C Brown, Orange, Yellow Industrial motors, large commercial HVAC
Any AC System Equipment Ground Bare, Green, or Green/Yellow Fault current path, bonding
DC Power (Solar/12V) Positive (+) Red Solar arrays, battery banks, automotive
DC Power (Solar/12V) Negative (-) Black DC return path (Note: conflicts with AC hot)

Rows People Get Wrong (And How to Fix Them)

Even experienced DIYers and junior electricians misinterpret specific NEC exceptions. Here are the most common color code traps and how to resolve them on the bench or jobsite.

⚠️ SAFETY WARNING: Never assume a white wire is safe to touch. In older homes or improperly wired switch loops, white wires frequently carry 120V. Always verify dead with a CAT III multimeter before handling.

1. The 'White Hot' Switch Loop

The Trap: You open a ceiling junction box and see a white wire connected to the black hot wire of the fixture.
The Reality: Per NEC 200.7(C)(2), a white wire can be used as a hot conductor in a cable assembly (like 2-wire NM-B) if it is permanently re-identified. In a traditional switch loop, power goes down to the switch on the white wire and returns on the black wire.
The Fix: If you find a white wire acting as hot, wrap it with black vinyl electrical tape or apply adhesive-lined heat shrink at both ends to permanently re-identify it. If you are pulling new wire, use a 3-conductor cable and use black for the always-hot and red for the switched-hot.

2. The High-Leg Delta Orange

The Trap: You see an orange wire in a commercial panel and assume it's a standard 208V phase.
The Reality: In a 240V 3-phase High-Leg Delta system, the B-phase (high leg) measures 208V to ground/neutral, while A and C phases measure 120V to neutral. NEC 110.15 mandates this high leg must be orange.
The Fix: Never land an orange high-leg wire on a 120V breaker or neutral bus. It will instantly destroy 120V appliances and cause a fire. Always verify phase-to-neutral voltage on delta systems before terminating.

3. Gray vs. White Neutrals

The Trap: Mixing white and gray neutrals in the same panel.
The Reality: White is reserved for 120V/208V (or 120V/240V) systems. Gray is strictly reserved for the neutral of 277V/480V systems. This prevents a technician from accidentally tying a 277V neutral to a 120V circuit, which would result in a catastrophic overvoltage condition.

Regional Variants: NEC vs. IEC vs. Old UK

If you are working on imported machinery, European vehicles, or older international infrastructure, the USA NEC colors do not apply. Use this comparison matrix to identify foreign wiring.

Function USA (NEC) Europe / IEC 60446 Old UK (Pre-2006)
Protective Earth (Ground) Green / Bare Green & Yellow Stripe Green / Bare
Neutral White / Gray Blue Black
Single Phase Hot (Line) Black / Red Brown Red
3-Phase Line 1 Black (120/208V) Brown Red
3-Phase Line 2 Red (120/208V) Black Yellow
3-Phase Line 3 Blue (120/208V) Gray Blue
Pro Tip: When integrating IEC-wired equipment (like a European CNC spindle motor) into a USA panel, use heat-shrink tubing to re-identify the IEC Brown/Black/Gray wires to USA Black/Red/Blue at the terminal block to prevent future maintenance errors.

Decision Path: Identifying Faded, Missing, or Foreign Wires

When you open a junction box and the colors are faded, painted over, or non-standard, follow this decision tree to safely identify the conductors.

Observed Condition Diagnostic Step Concrete Action / Result
Wire is white, but shows 120V on NCVT Check switch box for standard switch loop configuration. Re-identify with black tape. Treat as ungrounded hot conductor.
Wire is orange in a 3-phase panel Measure voltage from orange wire to neutral bus. If ~208V, it is a High-Leg Delta. Do not use for 120V line-to-neutral loads.
Wire is green with a yellow stripe Inspect equipment nameplate for IEC/CE marking. Treat as IEC Protective Earth (Ground). Terminate only to ground bus.
Wire color is completely faded to gray/white De-energize, perform continuity test to panel neutral/ground bus. If continuity to ground, it's a ground. If continuity to neutral, it's neutral. Re-identify with colored tape.
Wire is bare copper but connected to a breaker Inspect immediately. This is a severe code violation. De-energize circuit. Replace with insulated THHN hot wire. Bare is strictly for ground.

Safe Interpretation When Markings Are Gone

In older homes (pre-1960s), you may encounter cloth-covered wiring where the color has entirely degraded, or knob-and-tube systems where all wires look identical. Relying on visual inspection here is a guaranteed path to a shock hazard.

The Verification Protocol:

  1. De-energize and Lock Out: Turn off the main breaker or the specific branch circuit breaker. Use a lockout/tagout device if you are not the only person in the building.
  2. Verify Dead: Use a Non-Contact Voltage Tester (NCVT) on a known live source to prove the tester works, then test the suspect wires. Finally, test a known dead source to prove the tester hasn't failed mid-use (the 'Live-Dead-Live' test).
  3. Map with a Multimeter: Set your CAT III multimeter to continuity (the diode/beep setting). Disconnect the suspect wires from the device. Probe between the suspect wire and the panel's neutral bus. A reading of < 1 ohm confirms it is the neutral. Probe to the ground bus to confirm the equipment grounding conductor.
  4. The Default Rule: If a wire's function cannot be definitively proven with a meter, or if the insulation is brittle and cracking when bent, pull it back to the panel and replace it. Fish new, correctly colored 12 AWG or 14 AWG THHN through the conduit, or replace the NM-B run entirely. Never guess on mains voltage.