Wiring and electrical
What does each wire color do on a trailer connector?
Trailer wiring uses a standardized color code so that a shop, a manufacturer and a DIY installer working from a diagram can all agree on what a given wire does without opening the connector to trace it. The code below is the one most 7-way RV blade connectors, and the harnesses built to match them, follow.
No inspection can substitute for testing. Some older trailers, farm equipment adapted for road use, and aftermarket harnesses deviate from the standard color code, which is exactly why every guide on this site, including our own how to wire a seven-pin trailer connector guide, says to test each function with someone watching the lights before towing rather than trusting the color alone.
On this page
What does each wire color do on a 7-way connector?
The blue wire carries the electric brake signal, and it is the one wire that a time delay or proportional brake controller actually uses to apply the trailer brakes.
Rule of thumb Widely taught towing convention rather than a published specification. It is a good starting point and it is not a rating.
| Wire color | Function | Circuit |
|---|---|---|
| White | Ground | Common return path for every circuit |
| Brown | Tail, marker and side lights | Running lights, on whenever headlights are on |
| Yellow | Left turn signal and brake light | Combined turn and stop function on the left side |
| Green | Right turn signal and brake light | Combined turn and stop function on the right side |
| Blue | Electric brakes | Signal from the brake controller to the trailer brake magnets |
| Red | Reverse lights (backup) | Powered only in reverse gear |
| Black | Auxiliary 12V power | Charges the trailer battery and powers accessories, fused separately from the rest |
This color code is followed by the great majority of 7-way RV blade harnesses and is taught the same way across trailer and RV wiring diagrams, but no single regulation mandates it for every manufacturer. Test every circuit with a helper watching the lights before towing, regardless of what the wire color suggests.
Does the color code change on other connector types?
A 4-way flat connector carries only 4 circuits: ground, running lights, and the two turn and brake light circuits, with no dedicated electric brake or auxiliary power wire at all.
Rule of thumb Widely taught towing convention rather than a published specification. It is a good starting point and it is not a rating.
| Connector | Circuits carried | Electric brakes? | Auxiliary 12V power? |
|---|---|---|---|
| 7-way RV blade | 7: ground, running lights, left turn/brake, right turn/brake, electric brakes, reverse, auxiliary power | Yes | Yes |
| 6-way round | 6: ground, running lights, left turn/brake, right turn/brake, electric brakes, auxiliary power | Yes | On some versions |
| 5-way flat | 5: ground, running lights, left turn/brake, right turn/brake, electric brakes | Yes | No |
| 4-way flat | 4: ground, running lights, left turn/brake, right turn/brake | No | No |
A trailer with electric brakes needs at minimum a 5-way connector. A 4-way flat cannot power a brake controller circuit at all, regardless of what color the wires are, because the circuit does not exist on that connector.
What happens when the color code does not match?
A mismatched color code does not usually cause a fire or damage on its own, because each circuit is fused or protected separately, but it does cause exactly the wrong lights to come on: a left turn signal that triggers the right side, brake lights that stay on constantly, or trailer brakes that never engage. Any of those is a real hazard on the road, which is why testing lights with a helper is part of the pre-trip inspection rather than an optional step. See how to test trailer brakes before a trip and how to do a pre-trip towing inspection.
How do you fix a corroded or mismatched connector?
The socket and plug themselves fail more often than the color-coded wire behind them, especially where the connector hangs exposed near the road.
A replacement vehicle-side socket fixes intermittent trailer lights far more often than re-tracing the color code, because a corroded socket is the more common failure point.
Published standard A published, traceable figure: a standards body, a federal regulation or a manufacturer specification states it.
| Part | What it fixes |
|---|---|
| MECMO 7-way socket with bracket | A corroded or worn vehicle-side socket, the most common cause of intermittent trailer lights and brakes |
| Nilight 7-pin round to 7-way blade adapter | An older trailer with a 7-pin round plug behind a newer vehicle with a 7-way blade socket |
Neither part changes the color code itself. Both connect to the same standardized circuits described above.
Does the blue brake wire also set the brake gain?
No. The blue wire only carries the signal from the brake controller to the trailer's brake magnets; it does not set how hard those brakes engage. That is the controller's gain setting, a separate adjustment covered by the trailer brake gain calculator and worked out for specific weights on pages like brake gain for a 7,000 lb trailer behind a 5,800 lb vehicle.
Frequently asked questions
What color is the ground wire on a trailer connector?
White is the standard ground wire on a 7-way RV blade connector and on most other trailer connector types. It provides the common return path for every other circuit on the plug, so a poor ground connection can cause several unrelated functions to work intermittently at once, which makes it a good first thing to check on a troubleshooting call.
Which wire controls the trailer's electric brakes?
Blue is the standard electric brake wire, carrying the signal from the brake controller in the tow vehicle to the trailer's brake magnets. It only exists on 5-way, 6-way and 7-way connectors; a 4-way flat plug has no electric brake circuit at all, regardless of wire color.
What is the black wire for on a 7-way connector?
Black is the standard auxiliary 12V power wire, which charges the trailer's battery and runs accessories while connected to the tow vehicle. It is fused separately from the lighting and brake circuits so a fault in one does not take down the others.
Is the trailer wiring color code the same on every trailer?
Not universally. It is a widely followed industry convention rather than a legal requirement enforced on every manufacturer, so older trailers, farm equipment adapted for road use, and some aftermarket harnesses can wire differently. Always test each function rather than assuming the color code on a connector you did not wire yourself.
Can I add electric brakes to a trailer with only a 4-way flat connector?
Not through that connector. A 4-way flat carries only ground, running lights and the two turn and brake light circuits, with no electric brake wire and no auxiliary power wire. Adding electric brakes means upgrading to at least a 5-way connector on both the trailer and the tow vehicle side.
Why do my trailer's left and right turn signals sometimes swap?
A swapped yellow and green connection at the connector or inside a harness splice is the most common cause, and it is a wiring mistake rather than a fault in either bulb. Check the pin or wire assignment against the color code above at both ends of the connection, and confirm with someone watching the lights before towing again.
Free download
Get the complete tow rig setups emailed to you
Both ladders, conventional travel trailer and fifth wheel, at beginner, intermediate and expert budgets, every item priced and linked with a running total, plus a printable pre-trip weighing worksheet you can fill in at the scale.
One email with the setups. No sequence, no sharing your address, unsubscribe any time.
Researched, not professional advice. This page is compiled from published standards, manufacturer towing guides and product specifications, and owner-review consensus, not hands-on testing. Figures described as a rule of thumb are towing convention rather than published standards, and they are labelled that way wherever they appear. Nothing here overrides your own ratings. Work your payload sum before your tow rating, because payload is the limit that actually binds on most half ton trucks and nearly every SUV. Load a conventional trailer to 10 to 15 percent tongue weight and a fifth wheel to 15 to 25 percent pin weight, and never lighter: a tail heavy trailer is what starts sway. Weigh the rig loaded rather than trusting a brochure dry weight. A weight distribution hitch and a set of air bags both restore ride height and control, and neither one raises a single rating. Trailer brakes are required by state law above a threshold that varies by state, and a breakaway battery that has quietly gone flat is the normal condition of most trailers on the road.