Understanding Electrical Wire Color Codes

Ready to cross that electrical project off your to-do list? Understand wiring color codes so you can finish the job safely.

Front side showing colorful electrical wiringAMPOLS/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.

Fhm Understanding Electrical Wire Color Codes GettyimagesFAMILY HANDYMAN, GETTY IMAGES

 

1 / 6

black wires
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

Red wires
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

white and grey wires
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

green wires
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

Blue Yellow wires
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

Close-up Of a Electrical Panel
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.

Ally Childress
Ally Childress comes to Family Handyman from the electrical industry, where she was an accomplished electrician, winning the highly competitive Outstanding Graduate award as an apprentice. Her professional electrical experience included large commercial projects such as Minnesota's US Bank Stadium, and the Minneapolis-St. Paul International Airport and several hospitals. Before becoming an electrician, she worked in food safety and water quality as a scientist and technical writer. Ally's career, spanning multiple industries and areas of the country, honed her innate sense of curiosity and her ability to connect with subject matters of all kinds and explain dense subjects to diverse audiences. Ally is her household's designated handy person and is well versed in a variety of home DIY and maintenance tasks, able to confidently clean, troubleshoot, build, install, and modify. She loves spending time outdoors, especially with her partner and dogs.