Guide To Wiring Diagrams
House Electrical Wiring: What You Need to Know
House Electrical Wiring: What You Need to Know
What Do Car Trouble Codes Really Mean?
What to Know About Electrical Conduit Wiring
Deciphering Tomato Plant Tags: What Do Those Codes Mean?
Air Conditioning Wiring 101: What You Need To Know
Electrical Box Basics All Homeowners Should Know
Everything You Need To Know About Laundry Room Plumbing Codes
Wire Gauge Sizes: What You Need To Know
What To Know About Smart Home Wiring
Electrical Questions Answered By An Electrical Inspector
What's the Difference Between Pink, Yellow and Green Insulation?
The Easiest Way to Color Code Keys
Understanding Electrical Outlet Safety
8 Tips for Wiring LED Lights
If You See a Traffic Light With Blue Instead of Green, This is What It Means
17 Handy Hints for DIY Electrical Work
Installing Communication Wiring
Common National Electric Code Violations
ByAlly Childress
Updated on Nov. 24, 2023
Ready to cross that electrical project off your to-do list? Understand wiring color codes so you can finish the job safely.
Now Trending
AMPOLS/GETTY IMAGES
Electrical Wire Colors
The electrical aisle at the local home improvement center can be overwhelming, even for an experienced electrician. Insulated wires. Bare wires. Wires in every color of the rainbow.
Wires all do basically the same thing, right? Carry electricity? So why do wires come in so many colors?
Color coding offers a visual cue to a wire’s purpose and potential for danger. Color coding is important for a few reasons:
- Safety: Knowing what wires are likely to be energized is a must before starting any electrical project.
- Organization: A neat space means no guessing at what each wire does.
- Peace of mind: There’s an element of trust involved in electrical work. If the last person left a mess, what else was done improperly?
While the National Electrical Code (NEC) provides guidance for some conductor colors, on others the code book is silent. However, that doesn’t mean electricians haven’t developed a system over the years.
Here, we’ll walk through the electrical wire colors you’re likely to see in your home. Remember that no matter the color, all electrical conductors can potentially carry current. Always test wires with a multimeter or non-contact voltage tester before servicing or replacing.
FAMILY HANDYMAN, GETTY IMAGES
1/6

Ally Childress for Family Handyman
Black Wires
First on the electrical wire color code is black. Black wires are “hot” wires. They carry current from the home’s electrical panel to the light, appliance or other device that needs electricity. There’s no NEC requirement that hot wires be black or any other color, but black is the go-to for residential use.
Black wires may also carry current from a light switch to a light. This section of a circuit is called a switch leg. Traveler wires, used to connect two or more switches that control one light, can also be black, although other colors are also used.
Because black wires are so commonly used to carry electricity, always assume they are hot. Verify the circuit is off at the breaker before cutting or disconnecting a black wire.
2/6

Ally Childress for Family Handyman
Red Wires
Red wires are also hot wires. Large appliances like air conditioners need 240 volts to operate, and that requires two hot wires instead of one. Black is often used for one hot, red for the other. Red wires can be switch legs, too, particularly if you need two switch legs for one device. One example: a ceiling fan with an integrated light you want to control separately.
If you’re in a newer home with hardwired smoke detectors, a red wire connects them so if one goes off, they all go off. Red wires are used just like black wires, so assume they are hot. Always test any red wire before cutting or disconnecting.
3/6

Ally Childress for Family Handyman
White and Gray Wires
White and gray wires are grounded conductors, AKA neutrals. After a black or red wire carries electricity to a light, appliance or device, the neutral returns it to the panel. Then the process repeats in an endless loop.
The NEC allows grounded conductors to be white or gray, or have three white or gray stripes on any background color except green. Other configurations are permitted for specific applications.
White or gray wires with black, red or another color tape around the ends indicate the conductor is not being used as a neutral, but as a hot. Either way, these conductors carry current, so treat them as live at all times.
4/6

Ally Childress for Family Handyman
Green, Green-Yellow and Bare Wires
Green, green with yellow stripes and bare wires (wires without an insulated covering) are ground wires. Copper is the most common ground wire material, but aluminum can be used as well. Ground wires act as a safety valve for current that takes an unintentional path away from the equipment it’s supposed to be serving. Ground wires channel that unintentional current to the earth so people aren’t shocked.
When a circuit is operating normally, ground wires do not carry current. But they can, so always test them before cutting or disconnecting them. You do not know if the previous homeowner — or electrician, for that matter — wired things correctly.
5/6

Ally Childress for Family Handyman
Blue and Yellow Wires
Blue and yellow wires are sometimes used as traveler wires in three- and four-way switches. Sometimes they’re used as switch legs, particularly if your home’s electrical wires go through pipes in the walls, attic or basement.
More often, though, a residential electrician will choose cables containing black and/or red wires as travelers or switch legs. These cables attach directly to the studs without the need for a protective pipe.
Blue and yellow wires are frequently found in commercial and industrial buildings that use three-phase power (your home is single-phase), but they can also be used in residential buildings. So even if you won’t see these wires often, they’re always used for carrying current. Treat any you see like they’re live.
6/6

Goldmund/Getty Images
Orange, Brown, Pink and Violet Wires
Rounding out the electrical wire color code are orange, brown, pink and violet. In U.S. homes, orange is most commonly used like a red wire, particularly in a 240-volt circuit where two hot wires are needed. You might see orange wires in the fire alarm circuit as well.
Pink and violet are less prevalent but can be used as travelers or switch legs, or as dimming control wiring for lights. Brown conductors are used primarily in three-phase services, but you could certainly see them in your home, too.
If this seems like a lot of colors, you’re right. The NEC doesn’t specify that hot conductors be any certain color. So having multiple recognizable options when running circuits, switch legs and travelers helps electricians stay organized and safe. As always, exercise caution when working with these wires and assume that they’re live.
Author
Ally Childress
Ally Childress writes practical, informed stories and how-to guides for Family Handyman and Reader’s Digest. An experienced electrician, Ally's beat naturally includes electrical and construction topics. She also tackles cleaning, gardening, technology, bugs and anything else you can throw at her. She has a knack for finding just the right subjec...
Read More