Electrical Wire Colors
The different colors of electrical wires can show their functions respectively, with black and red indicating the wires carry electric current, white usually indicating neutral charge and green indicating the wire is grounded. The colors, regulated by the National Electrical Code in the United States, are standardized for safety.
Black wires are always hot wires which mean that they carry electricity and dangerous. Black wires are never used as ground or neutral wires and must always be treated with caution. Red wires are another type of hot wires. As hot wires can be connected to each other, a black wire can be connected to a red wire. White wires are always neutral in 110-volt circuits but can be used as the second hot wire or switch leg in 240-volt applications and three-way switches, respectively. Green wires are used for grounding and should only be connected to other green wires.