Ethernet Cable Color Code: RJ45 Wiring Guide Explained

Understanding Ethernet Cable Color Codes: What the RJ45 Wiring Standard Actually Means
If you have ever cracked open a patch panel or crimped your own cable ends, you already know how confusing it can be staring at eight different colored wires and trying to remember which goes where. The Ethernet cable color code for RJ45 connectors is one of those things that seems overly technical at first, but once it clicks, it becomes second nature. This guide breaks it all down in plain language, whether you are running cable for a home network, a small office, or a full enterprise deployment. Understanding the standard helps you build reliable connections, troubleshoot faster, and avoid costly mistakes on the job.
What Is the RJ45 Color Code and Why Does It Exist
RJ45 stands for Registered Jack 45, a standardized physical interface used for Ethernet networking. It has eight pins, each carrying a specific wire from a twisted pair cable such as Cat5e, Cat6, or Cat6A. The color code tells you exactly which wire goes into which pin position inside that connector. There are two dominant wiring standards in the industry: T568A and T568B. Both were developed by the Telecommunications Industry Association and the Electronic Industries Alliance as part of the TIA/EIA-568 standard. The reason the color code exists is not arbitrary, it is about signal integrity and cross-talk reduction. Each wire pair is twisted at a specific rate to cancel out electromagnetic interference, and the pinout ensures those pairs stay consistent from one end of the cable to the other. Without a standard, every technician would wire things differently, and your network would be a mess of incompatible connections.
T568A vs T568B: The Two Wiring Standards Explained
This is where most people get stuck, and honestly, it is worth spending a minute here. T568A and T568B use the same eight wires but swap the positions of two pairs, specifically the green and orange pairs. T568B is more common in commercial and enterprise environments across North America. T568A is preferred for residential installations and is required for U.S. government contracts. The actual performance difference between the two is negligible on a properly terminated cable. What matters most is consistency. If one end of your cable is wired T568B, the other end needs to be T568B as well, otherwise you end up with a crossover cable, which has a specific purpose but will not work as a standard patch cable. Most integrators and IT professionals default to T568B for everything unless a project spec says otherwise.
The T568B Pin and Color Chart Broken Down
Here is how the T568B standard maps out across all eight pins of an RJ45 connector. This is the layout you will use the most in real-world installations.
- Pin 1 -- White/Orange
- Pin 2 -- Orange
- Pin 3 -- White/Green
- Pin 4 -- Blue
- Pin 5 -- White/Blue
- Pin 6 -- Green
- Pin 7 -- White/Brown
- Pin 8 -- Brown
The pairs themselves are orange, green, blue, and brown, each paired with its white-striped counterpart. The pairs work together to transmit and receive data, and the twisting inside the cable jacket is what keeps signal degradation and cross-talk at bay. Disrupting those twists during termination, even slightly, can introduce performance issues, especially at higher speeds like those supported by Cat6A running 10-Gigabit Ethernet over longer distances.
The T568A Pin and Color Chart for Reference
T568A swaps the orange and green pairs from the T568B layout. It looks like this.
- Pin 1 -- White/Green
- Pin 2 -- Green
- Pin 3 -- White/Orange
- Pin 4 -- Blue
- Pin 5 -- White/Blue
- Pin 6 -- Orange
- Pin 7 -- White/Brown
- Pin 8 -- Brown
Notice that pins 4, 5, 7, and 8 remain the same across both standards. The blue and brown pairs do not move. It is only the orange and green pairs that switch positions. This is an easy way to spot-check your terminations if you ever get confused mid-job.
Straight-Through vs Crossover Cables: When the Color Code Changes
A straight-through cable uses the same wiring standard on both ends, either T568A on both or T568B on both. This is the cable you use to connect a computer to a switch or a patch panel to a router. A crossover cable intentionally wires one end as T568A and the other as T568B, which crosses the transmit and receive pairs. This allows two similar devices to communicate directly, like connecting two computers without a switch in between. Modern network equipment typically supports Auto-MDIX, a feature that automatically detects and adjusts for cable type, so crossover cables are becoming less common. But in legacy environments or when dealing with certain managed switches and routers, knowing how to make a crossover cable correctly is still a valuable skill.
Key Advantages of Following the RJ45 Color Code Standard
Sticking to the standardized color code is not just about doing things by the book. There are real, practical benefits to following it consistently across every installation.
- Faster troubleshooting when something goes wrong
- Consistent performance across all termination points
- Compatibility with patch panels, keystones, and wall jacks from any manufacturer
- Easier handoffs between technicians on large projects
- Compliance with industry certification requirements
- Reduced risk of cross-talk and signal loss
When every cable in your infrastructure follows the same standard, the entire network becomes easier to manage, audit, and expand over time. That kind of long-term reliability matters whether you are running 10 drops or 10,000.
Common Mistakes to Avoid When Terminating RJ45 Connectors
Even experienced technicians make mistakes under pressure, especially when running hundreds of cables in a single job. The most frequent error is untwisting too much of the wire pair before inserting it into the connector. The TIA standard recommends keeping untwisted length to half an inch or less. Beyond that, you start losing the interference protection those twists provide. Another common issue is mixing T568A and T568B on the same cable, turning a standard patch cable into a crossover without realizing it. Always label both ends of your cables during the run, before termination, to avoid confusion. Skipping a cable tester after crimping is another mistake that wastes time later. A basic continuity tester will catch wiring errors immediately and save hours of diagnostic work after the network is already in use.
Which Cable Category Should You Use with Your RJ45 Terminations
The color code applies across all twisted pair Ethernet cables, but the category of cable you choose determines the performance ceiling of your network. Cat5e supports speeds up to 1 Gigabit Ethernet and is still widely used in cost-sensitive deployments. Cat6 improves on that with better cross-talk resistance and supports 10-Gigabit speeds up to 55 meters. Cat6A extends that 10G capability to the full 100-meter distance, making it the right choice for most new commercial installations. Cat8 is emerging in data center environments where 25G and 40G speeds are required over short runs. Regardless of the category, the RJ45 wiring standard and color code remain the same. The differences are in the cable construction itself, not in how you terminate the connector.
Why Monoprice Is the Right Source for Your Ethernet Cabling Needs
When you are speccing out a network installation, whether it is a single office, a multi-floor enterprise buildout, or a data center refresh, the quality of your cabling infrastructure matters more than most people realize. That is where Monoprice delivers real value. Every cable, connector, and patch panel in the Monoprice networking lineup is built to meet or exceed TIA/EIA standards, which means your terminations are going to perform exactly the way they should when you follow the RJ45 color code correctly. The pricing is competitive without cutting corners on construction, and the product range covers everything from basic Cat5e patch cables to shielded Cat6A bulk cable for high-density runs. For IT professionals and network integrators who need reliable materials at scale, shopping for high-performance Ethernet cables and RJ45 networking solutions from Monoprice means getting professional-grade infrastructure without the inflated margins. If you are building or upgrading a network and want to do it right the first time, Monoprice has the tools, cable, and connectors to make that happen efficiently and affordably.
Frequently Asked Questions About Ethernet Cable Color Codes and RJ45 Wiring
What is the standard color code for an RJ45 Ethernet cable?
The most widely used standard is T568B, where the pin order from left to right is white/orange, orange, white/green, blue, white/blue, green, white/brown, and brown. T568A swaps the orange and green pairs but is otherwise structured the same way.
Does it matter whether I use T568A or T568B?
For most installations, either standard works fine as long as you use the same one on both ends of the cable. T568B is more common in commercial environments in North America, while T568A is required for U.S. government network installations.
What happens if I mix T568A and T568B on the same cable?
You create a crossover cable, which is designed for direct device-to-device connections rather than standard network connections to switches or routers. In most cases, the cable will not function as expected in a regular network setup unless the equipment supports Auto-MDIX.
How many wires are inside an RJ45 connector?
An RJ45 connector has eight pins, each corresponding to one wire from the twisted pair cable. Those eight wires are organized into four pairs, each pair twisted together at a specific rate to reduce electromagnetic interference.
Can I use the same color code for Cat5e, Cat6, and Cat6A cables?
Yes. The T568A and T568B wiring standards apply to all twisted pair Ethernet cables regardless of category. The category of the cable affects performance specifications, not how you terminate the RJ45 connector.
What is a crossover cable used for?
A crossover cable connects two similar devices directly without a switch or hub in between, such as two computers or two switches in certain configurations. It achieves this by wiring one end as T568A and the other as T568B to cross the transmit and receive pairs.
How far can I untwist the wire pairs when terminating an RJ45 connector?
The TIA standard recommends keeping the untwisted length to no more than half an inch at the termination point. Exceeding this can degrade signal quality and increase cross-talk, especially in higher-speed applications like 10-Gigabit Ethernet.
Do I need a cable tester after crimping RJ45 connectors?
Yes, using a cable tester after every termination is strongly recommended. A continuity tester verifies correct pin mapping, catches wiring errors before deployment, and saves significant troubleshooting time once the network is live.
What is Auto-MDIX and does it replace the need to know the color code?
Auto-MDIX is a feature in modern network switches and routers that automatically detects cable type and adjusts signal routing accordingly. It reduces the need for crossover cables, but it does not replace the importance of correct and consistent RJ45 termination using the proper color code.
What cable category is best for new commercial network installations?
Cat6A is generally the recommended choice for new commercial installations. It supports 10-Gigabit Ethernet over the full 100-meter channel distance and provides headroom for future network upgrades without requiring a cable infrastructure overhaul.




