Electrical Wiring Colors: Wire Color Code Standards by Country
Understanding electrical wire color codes is essential for safe wiring work. Whether you are working on a home electrical project, troubleshooting an industrial panel, or wiring a circuit in another country, knowing what each wire color means prevents dangerous mistakes and ensures code compliance.
This guide covers wire color standards for the United States (NEC), Canada (CEC), United Kingdom (BS 7671), European Union (IEC 60446), Australia/New Zealand, and India. We also cover low-voltage DC wiring colors for automotive, solar, and electronics applications.
Why Wire Colors Matter
Wire colors serve a critical safety function. They tell electricians, inspectors, and DIYers which conductor carries what function without needing to test every wire with a meter. Connecting a hot wire to a ground terminal -- or mixing up neutrals and hots -- can cause electrocution, fires, or equipment damage.
Color codes are defined by national electrical codes and international standards. While the principles are similar worldwide (hot, neutral, ground), the actual colors vary significantly between countries. If you work on imported equipment or travel for electrical work, knowing these differences is crucial.
United States Wire Color Codes (NEC)
The National Electrical Code (NEC) governs wire colors in the United States. Here are the standard colors for 120/240V residential and commercial wiring:
Single-Phase (120V/240V)
- Black -- Hot (Line 1, ungrounded conductor)
- Red -- Hot (Line 2, used in 240V circuits and 3-way switch travelers)
- White -- Neutral (grounded conductor)
- Green -- Equipment ground
- Bare copper -- Equipment ground
- Green with yellow stripe -- Equipment ground (isolated ground)
Three-Phase (208V/480V)
- Black -- Phase A
- Red -- Phase B
- Blue -- Phase C
- White -- Neutral
- Green -- Ground
277/480V Three-Phase
- Brown -- Phase A
- Orange -- Phase B
- Yellow -- Phase C
- Gray -- Neutral
- Green -- Ground
Important NEC Rules
The NEC mandates colors only for neutral (white or gray) and ground (green or bare). Hot conductors can technically be any other color, but the conventions above are universally followed. Breaking these conventions is a code violation in practice because it creates confusion and safety hazards.
In conduit work with individual THHN conductors, electricians follow these color conventions strictly. In Romex (NM cable), colors are determined by the cable jacket: 14/2 has black (hot) and white (neutral), while 14/3 adds red as a second hot.
Canadian Wire Color Codes (CEC)
Canada follows the Canadian Electrical Code (CEC), which is similar to the NEC but has key differences:
- Black -- Hot (Phase A)
- Red -- Hot (Phase B)
- Blue -- Hot (Phase C)
- White -- Neutral
- Green or Green with yellow stripe -- Ground
The CEC is nearly identical to the NEC for residential wiring. The main difference appears in 3-phase industrial systems where Canadian practice may vary slightly from US conventions.
United Kingdom Wire Color Codes (BS 7671)
The UK updated its wire colors in 2004 (Amendment 2 to BS 7671) to align with European harmonized colors. Both old and new systems are still found in existing buildings.
Current UK Colors (post-2004)
- Brown -- Live (Line)
- Blue -- Neutral
- Green with yellow stripe -- Earth (protective conductor)
Three-Phase (Current)
- Brown -- L1
- Black -- L2
- Gray -- L3
- Blue -- Neutral
- Green with yellow stripe -- Earth
Old UK Colors (pre-2004, still found in buildings)
- Red -- Live
- Black -- Neutral
- Green or green/yellow -- Earth
If you encounter old UK wiring, never assume black is neutral based on US conventions -- in old UK wiring, black IS the neutral, not a hot conductor. Always test with a multimeter.
European Union / IEC Standard (IEC 60446)
The harmonized European colors (IEC 60446) match the current UK system:
- Brown -- Line (L1)
- Black -- Line (L2)
- Gray -- Line (L3)
- Blue -- Neutral
- Green with yellow stripe -- Protective Earth (PE)
These colors are used across the EU, including Germany, France, Italy, Spain, and Scandinavia. The harmonization effort began in the 1990s and is now standard across member states.
Australia and New Zealand Wire Colors (AS/NZS 3000)
Australia and New Zealand follow AS/NZS 3000 (the Wiring Rules):
- Red or Brown -- Active (Line)
- Black or Blue -- Neutral
- Green with yellow stripe -- Earth
Three-Phase
- Red -- Phase A
- White -- Phase B
- Blue -- Phase C
- Black -- Neutral
- Green/yellow -- Earth
Australia transitioned from the old red/black system to harmonized brown/blue colors, but red/black is still common in existing installations.
India Wire Color Codes (IS 732)
India follows IS 732:
Old Indian System
- Red -- Phase (Line)
- Black -- Neutral
- Green -- Earth
New Indian System (aligning with IEC)
- Brown -- Phase
- Blue -- Neutral
- Green with yellow stripe -- Earth
Three-Phase (India)
- Red -- Phase R
- Yellow -- Phase Y
- Blue -- Phase B
- Black -- Neutral
- Green -- Earth
Low-Voltage DC Wire Colors
DC wiring for automotive, solar, marine, and electronics applications follows different conventions:
Automotive (12V DC)
- Red -- Positive (+12V)
- Black -- Negative (ground)
Solar Panel Systems
- Red -- Positive DC
- Black -- Negative DC
- Green -- Equipment ground
- White -- Neutral (AC side of inverter)
Electronics and Hobby Projects
- Red -- Positive voltage (Vcc, V+)
- Black -- Ground (GND, 0V)
- Other colors -- Signal wires (no strict standard)
USB Cable Colors
- Red -- +5V power
- Black -- Ground
- White -- Data negative (D-)
- Green -- Data positive (D+)
Thermostat Wire Colors
Thermostat wiring uses its own color conventions:
- Red (R) -- 24V power from transformer
- White (W) -- Heat call
- Yellow (Y) -- Cooling call
- Green (G) -- Fan
- Blue or Brown (C) -- Common (24V return)
- Orange (O/B) -- Heat pump reversing valve
Quick Reference Table
| Function | USA (NEC) | UK/EU (IEC) | Australia | India (old) |
|---|---|---|---|---|
| Hot/Live L1 | Black | Brown | Red | Red |
| Hot/Live L2 | Red | Black | White | Yellow |
| Hot/Live L3 | Blue | Gray | Blue | Blue |
| Neutral | White | Blue | Black | Black |
| Ground/Earth | Green/bare | Green-yellow | Green-yellow | Green |
Safety Guidelines
- Always test -- Never rely solely on wire color. Use a multimeter or non-contact voltage tester to verify.
- Turn off power -- De-energize circuits before working on them. Lock out the breaker.
- Label everything -- When re-wiring or working in conduit, label wires at both ends.
- Follow local codes -- Wire color requirements vary by jurisdiction. Check with your local building department.
- Old wiring -- Buildings with pre-standard wiring may use non-standard colors. Test every conductor.
Creating Wire Color Reference Diagrams
Use CircuitDiagramMaker to create reference diagrams showing wire color codes for your specific application. The color-coded wire feature lets you assign red for hot, green for ground, blue for neutral, and any custom color for signal wires. Export as PNG or PDF for your reference binder.
CircuitDiagramMaker's AI circuit generator can also create properly color-coded diagrams -- just describe your circuit and mention the wiring standard you need to follow.
Switch Leg and Traveler Wire Colors
In a 3-way or 4-way switch circuit, the wire that carries switched power between switches and the light fixture is often called the switch leg or traveler, and it does not always follow the simple hot/neutral/ground pattern.
- Black -- commonly used as a traveler between two 3-way switches, or as the switch leg feeding the fixture
- Red -- the second traveler in a 3-way circuit, run alongside black
- White, reidentified with black or red tape -- when a switch loop only has a 2-wire cable available, the white conductor is pressed into service as a hot switch leg. NEC 200.7 requires it to be permanently reidentified (tape, paint, or marker) at every point it is visible, so it is not later mistaken for a neutral
- Common terminal (dark screw) on a 3-way switch connects to the source hot or the fixture -- never to a traveler terminal
Because 3-way and 4-way circuits need extra conductors that a standard 2-wire cable does not provide, the white wire in these boxes is frequently repurposed as a second hot. Never assume a white wire is a neutral inside a switch box without testing it first.
Code and Permit Considerations
The NEC sets the color rules, but permitting and licensing are handled at the state and local level. Most jurisdictions require an electrical permit for new circuits, service upgrades, and most rewiring -- simple like-for-like device swaps (replacing an existing outlet or switch on an unchanged circuit) are often permit-exempt, but this varies by jurisdiction.
A few points worth knowing:
- NEC 200.6 and 200.7 govern neutral and reidentified-conductor colors; NEC 250.119 covers equipment grounding conductor colors (green, bare, or green with a yellow stripe for isolated grounds)
- A permitted job usually triggers an inspection, and the inspector will check color coding along with box fill, grounding, and general workmanship
- If you find non-standard wire colors in your home -- especially in an older house that has been added onto or rewired informally over the years -- do not assume you know what a wire does. Have a licensed electrician trace and label the circuit before you open walls or work inside the panel
- Rules on DIY electrical work vary by state and country. Some allow homeowners to pull their own permit for work in their own home; others require a licensed electrician for anything beyond fixture or device replacement
Troubleshooting Wire Color Confusion
| Symptom | Likely Cause | Fix |
|---|---|---|
| A black wire in an old house is actually the neutral | Pre-standardization wiring, or an imported/old Commonwealth wiring scheme where black was used as neutral | Test with a meter before assuming function; relabel with tape once confirmed |
| White wire tests hot at a switch box | White was reused as a switch leg or traveler and never reidentified | Verify with a non-contact tester; if hot, mark it with black or red tape per code |
| Two black wires land in the same box and only one should be a source hot | One black wire is a switched leg or traveler, not a supply hot | Trace each wire with a tester or continuity check before landing anything on a device |
| Bare copper and green insulated wire both appear on the same ground bus | Different cable types (NM cable vs conduit runs) use different ground conductor styles | Both are grounds and can share the same bus or wire nut |
| An outlet reads hot on both slots | Hot and neutral were reversed somewhere upstream | De-energize the circuit and correct the reversal at the outlet or panel -- do not just relabel the wires |
Testing a Wire's Actual Function Before You Trust the Color
Wire color is a convention, not a guarantee -- especially in older homes, after DIY rewiring, or on imported equipment. Before connecting to or trusting any wire, confirm what it actually does:
- Start with a non-contact voltage tester. Hold it near each wire with the circuit energized -- it will beep or light up near a hot conductor and stay silent near a neutral or ground.
- Once you know which wires are hot, de-energize the circuit at the breaker before touching anything.
- With a multimeter set to AC voltage, measure between the suspected hot and a known neutral or ground to confirm the reading (roughly 120V or 240V, depending on the circuit).
- With the circuit de-energized and disconnected from its source, use the continuity/resistance setting to confirm which wires connect to each other at opposite ends -- this is especially useful in switch loops and multi-wire branch circuits.
- Label every wire you test, at both ends, so the next person working on the circuit -- including a future version of you -- doesn't have to repeat the process.
Conclusion
Wire color codes are fundamental to electrical safety. While the specific colors vary by country and application, the principle is universal: every conductor has a designated function, and its color communicates that function to anyone who works on the circuit.
Bookmark this guide as a reference, and always verify wire function with a tester before making connections. When in doubt, consult a licensed electrician and your local electrical code.
Create color-coded wiring diagrams with CircuitDiagramMaker -- the free online wiring diagram tool with 400+ symbols and built-in simulation.
Frequently asked questions
does a 240V circuit need a neutral wire
Not always. A 240V circuit that supplies straight 240V-only loads, like a water heater or many central air condensers, needs just two hots and a ground. A neutral is only required if the equipment also runs 120V components, such as a range or dryer's clock and light, which is why modern dryer and range circuits use four wires instead of three.
what's the difference between a neutral wire and a ground wire if they connect to the same bar in the panel
The neutral carries normal return current whenever the circuit is operating and is bonded to ground at only one point, the main panel. The ground carries no current under normal conditions and only conducts during a fault, giving stray current a safe path back to trip the breaker. Bonding them together anywhere except that one main point creates a shock hazard.
what do the wire colors mean on an LED strip light
On single-color LED strips, red is typically the positive lead and black (or sometimes white) is the negative return. On RGB strips, red usually carries the common positive voltage, while the remaining wires, often black, green, and blue, each control one color channel rather than indicating polarity the way red and black do on other low-voltage wiring.
why doesn't a lamp cord or extension cord use colored wires to show which side is hot
Lamp and zip cords (SPT-1/2) often use two conductors of the same color, so instead of color they mark polarity with a smooth-insulation side for neutral and a ribbed or printed-line side for hot. This lets you wire a polarized plug correctly even though both conductors look identical otherwise.
can a green or bare copper wire ever be used as a hot wire
No. The NEC reserves green and bare copper exclusively for equipment grounding conductors. They should never be intentionally connected as a hot or neutral conductor, even temporarily, because it defeats the safety function of the grounding system and creates a serious shock hazard for anyone who later assumes green means ground.
can I reidentify a wire's function by taping over its factory color
The NEC allows reidentifying white or gray conductors as hot with tape, paint, or a marker at each visible point, which is common in switch loops. It does not permit using tape to turn a hot-colored conductor into a ground or neutral substitute -- ground and neutral functions must use conductors that are actually sized and rated for that role.