A wire colour code calculator translates insulation colours to their specific electrical function—Line (Hot), Neutral, or Earth (Ground)—based on your regional wiring standard. In North America (NEC), black or red indicates a hot conductor, white is neutral, and bare or green is ground. In the UK and EU (IEC 60446), brown is live, blue is neutral, and green-and-yellow is earth. Because global standards differ drastically, inputting the wrong region into a colour code calculator can lead to catastrophic short circuits or fatal shocks.
The Master Wire Colour Code Reference Table
The table below provides the exact insulation colours for single-phase and three-phase systems across the four major global standards. Use this as your primary reference when verifying circuit functions at the panel or junction box.
| Conductor Function | US & Canada (NEC / NFPA 70) | EU & UK (IEC 60446) | Old UK (Pre-2004) | Australia & NZ (AS/NZS 3000) |
|---|---|---|---|---|
| Line / Hot (1-Phase) | Black | Brown | Red | Red (or Brown) |
| Neutral | White (or Grey) | Blue | Black | Black (or Blue) |
| Earth / Ground | Bare, Green, or Green/Yellow | Green & Yellow | Green (or Bare) | Green & Yellow |
| Phase 2 (3-Phase) | Red (or Blue for 277/480V) | Black | Yellow | White (or Black) |
| Phase 3 (3-Phase) | Blue (or Yellow for 277/480V) | Grey | Blue | Blue (or Grey) |
Note: US 3-phase colours vary by voltage class. 120/208V systems typically use Black/Red/Blue, while 277/480V systems use Brown/Orange/Yellow. Always verify with a meter.
Regional Variants and Standard Applications
When using a wire colour code calculator, selecting the correct regional standard is critical. A colour that means 'safe neutral' in one country might mean 'lethal live' in another.
- North America (NEC): Governed by NFPA 70 (National Electrical Code). The NEC strictly reserves white and grey for grounded (neutral) conductors, and green/bare for equipment grounding conductors. Any other colour can technically be used as an ungrounded (hot) conductor, though black, red, and blue are industry standard.
- Europe & Modern UK (IEC 60446): The UK harmonized with European IEC standards in 2004. This transition, detailed by the Institution of Engineering and Technology (IET), changed the live wire from red to brown, and the neutral from black to blue. If you are working in a UK home built between 2004 and 2006, you may encounter a mix of both old and new colours in the same consumer unit.
- Australia & New Zealand (AS/NZS 3000): Historically used red/black/green, but modern installations align closely with IEC standards (brown/blue/green-yellow) to match global appliance cords, though legacy red/black is still legally permitted in existing installations if not altered.
The 'Rows People Get Wrong' & Faded Wire Protocols
Even with a perfect colour code calculator reference, real-world jobsites are messy. Here are the specific scenarios where relying solely on insulation colour leads to mistakes, and how to handle degraded wiring.
Rows People Get Wrong
- The 'White Wire as Hot' Switch Loop: In older US NEC wiring, a 2-wire cable (black and white) was often run to a switch. The white wire was used to carry the switched hot back to the light. Correction: NEC 200.7(C)(1) requires this white wire to be permanently re-identified with black or red electrical tape at both ends to indicate it is a hot conductor. If you see a white wire connected to a brass (hot) terminal on a switch, assume it is live.
- The High-Leg Delta (Orange Wire): In US commercial buildings with 240V 3-phase delta service, the center-tapped phase (Phase B) yields 208V to neutral instead of 120V. The NEC mandates this 'high leg' must be coloured Orange. Connecting a 120V load to the orange leg will instantly destroy the appliance and create a fire hazard.
- Solid Green vs. Green/Yellow: In the US, solid green is a perfectly legal equipment ground. In the EU/UK (IEC), solid green is forbidden for grounding; it must be green-and-yellow striped to prevent confusion with old solid-green live wires used in some legacy telecom or control circuits.
Never guess the function of a wire if the insulation is faded, painted over, or missing. 1. De-energize the circuit at the breaker and apply a lockout/tagout device. 2. Verify the circuit is dead using a Non-Contact Voltage Tester (NCVT). 3. Use a digital multimeter in continuity mode to trace the wire back to the panel's neutral bar or ground bus. 4. If the circuit must be tested live to identify a neutral vs. ground, measure voltage from the suspected hot to the mystery wire. A hot-to-neutral reading will be nominal (e.g., 120V or 230V). A hot-to-ground reading will also be nominal, but if you measure neutral-to-ground under load, you should read a few millivolts to 2V maximum. If you read full line voltage between two wires, neither is a neutral/ground.
Wire Colour Code Calculator FAQ
How does a colour code calculator handle 3-phase wiring?
A comprehensive colour code calculator will ask for your voltage class before outputting 3-phase colours. In the US, a 120/208V wye system uses Black, Red, and Blue for phases A, B, and C. However, a 277/480V wye system uses Brown, Orange, and Yellow. In IEC regions, 3-phase is universally Brown, Black, and Grey, regardless of whether it is a 230/400V or 400/690V system. Always confirm the system voltage before trusting the phase colour output.
What do I do if my wire colours don't match the calculator?
If you open a junction box and find non-standard colours (e.g., a yellow wire used as a neutral, or a white wire used as a hot without re-identification tape), you are dealing with a code violation or a DIY hack. Stop work. Do not assume the wire's function based on its physical connection. Use a multimeter to verify the electrical characteristics (voltage to known ground, continuity to the panel bus) and re-identify the wires with proper coloured heat-shrink tubing or electrical tape before proceeding.
Can I use a resistor colour code calculator for mains wiring?
No. A resistor colour code calculator interprets coloured bands on small electronic components to determine resistance in ohms (e.g., Brown-Black-Red = 1,000 ohms). Mains wiring colour codes dictate the function and safety classification of the cable insulation (Line, Neutral, Earth). The two systems share colours but have entirely different meanings and physical applications. Never apply component logic to building wiring.
Is the old UK red and black wiring still legal in 2026?
Yes, existing old UK wiring (red live, black neutral, green earth) installed prior to the 2004 IEC harmonization is still legal and safe to use, provided it has not been damaged or modified. However, if you are adding a new circuit or extending an existing one, the new cable must use the modern IEC colours (brown, blue, green/yellow). When joining old and new cables in a junction box, you must use clearly marked connectors or sleeve the old wires with modern coloured heat-shrink to prevent future electricians from confusing the old black neutral with a modern IEC black phase 2 conductor.






