Ethernet cable color codes are the standardized color patterns on the internal wires that ensure your network cable works correctly, whether you are crimping your own cables or troubleshooting a connection. The colors themselves (like orange, green, blue, and brown) are not just decorative—they map to specific pin positions in the RJ45 connector, and the order you place them in determines whether you have a straight-through or crossover cable. Understanding this code lets you build reliable cables, identify wiring faults, and know why a cable might work for a computer but not a switch.
Why Ethernet Cables Have Color Codes
Ethernet cables contain four twisted pairs of wires, each pair having a solid color and a white-striped version of the same color. The colors are standardized by the TIA/EIA-568 industry standard, which defines two main wiring schemes: T568A and T568B. These schemes exist so that any two devices can communicate as long as both ends of a cable are wired to the same standard. The color code is the visual map that tells you which wire goes into which pin of the RJ45 connector, and it is critical because the order of the wires determines the electrical signal path.
The four pairs are:
- Pair 1: Blue and white/blue
- Pair 2: Orange and white/orange
- Pair 3: Green and white/green
- Pair 4: Brown and white/brown
Each pair is twisted at a different rate to reduce electromagnetic interference (crosstalk) between pairs. The color code helps you identify which pair is which, so you can maintain the correct twist rate up to the point of termination.
T568A vs. T568B: The Two Wiring Standards
The two dominant wiring standards are T568A and T568B. They are identical in terms of which pairs are used, but the order of the orange and green pairs is swapped at the connector. Here is the pinout for each:
| Pin | T568A | T568B |
|---|---|---|
| 1 | White/Green | White/Orange |
| 2 | Green | Orange |
| 3 | White/Orange | White/Green |
| 4 | Blue | Blue |
| 5 | White/Blue | White/Blue |
| 6 | Orange | Green |
| 7 | White/Brown | White/Brown |
| 8 | Brown | Brown |
In practice, T568B is the most common in residential and office installations, while T568A is often used in government or military projects and is also the preferred standard for new installations in some countries. Both are perfectly functional; what matters is that you use the same standard on both ends of a cable for a normal connection.
Straight-Through vs. Crossover Cables
The color code also determines whether a cable is straight-through or crossover. A straight-through cable uses the same wiring standard (T568A on both ends or T568B on both ends) and is used to connect different types of devices, such as a computer to a switch or a router to a modem. A crossover cable uses T568A on one end and T568B on the other, which swaps the transmit and receive pairs. This was historically needed to connect two similar devices directly—like two computers without a switch, or two switches together.
Today, most modern network interfaces support Auto-MDIX, which automatically detects and corrects for crossover vs. straight-through wiring, making crossover cables largely obsolete for most users. However, if you are crimping your own cables, knowing the difference is still useful because some older equipment, industrial devices, or specialized networks may still require a crossover cable.
How to Crimp an Ethernet Cable Using the Color Code
When making your own Ethernet cable, the color code is your guide to placing wires into the RJ45 connector. Here are the steps:
- Strip the outer jacket: Use a cable stripper to remove about 1.5 to 2 cm of the outer insulation, being careful not to nick the inner wires.
- Untwist and arrange the pairs: Untwist the four pairs and arrange the eight wires in the correct order for your chosen standard (T568A or T568B). Keep the twists as close to the connector as possible.
- Flatten and trim: Flatten the wires so they are in a straight line, then trim them evenly so they are all the same length—about 1.2 cm from the jacket.
- Insert into the connector: Slide the wires into the RJ45 connector with the clip facing down. Ensure each wire goes fully to the front of the connector and the outer jacket is inside the connector’s strain relief.
- Crimp: Use a crimping tool to press the connector’s pins into the wires. You should hear a click when it is fully crimped.
- Test the cable: Use a cable tester to verify that each pin is wired correctly and that there are no shorts or opens.
Common mistakes include not pushing the wires all the way in, mixing up the order of the green and orange pairs, or leaving too much untwisted wire, which can cause crosstalk and reduce performance.
Common Problems and How Color Codes Help Troubleshoot
When a network connection fails, the color code is your first diagnostic tool. If you have a cable tester, it will show which pin is not connected or which pair is swapped. For example, if pin 1 and pin 2 are reversed, you will see a “pair swap” error. If a wire is not making contact, the tester will show an “open” on that pin.
Even without a tester, you can visually inspect the connector: if the wires are not in the correct order or if one is not fully inserted, you can often see the issue. Knowing the color code also helps you identify if someone used the wrong standard on one end, which would create a crossover cable unintentionally—this can cause a connection to fail when connected to a device that does not support Auto-MDIX.
Color Codes for Different Cable Types
While the internal wire colors are standardized, the outer jacket color of Ethernet cables is not. You will see cables with blue, gray, yellow, red, or other jackets, but those colors are purely for organizational purposes—they do not affect performance. Some organizations use jacket colors to designate different networks (e.g., red for production, blue for test), but that is a local convention, not a standard.
Also, shielded cables (FTP or STP) may have an additional drain wire or foil shield that is not part of the color code. That shield is connected to the metal connector shell, not to any pin, and it is important for grounding in industrial environments.
Cost and Tools for Making Your Own Cables
Making your own Ethernet cables can save money if you need many custom-length cables, but it requires an initial investment in tools. A basic crimping tool costs around $15–$30, and a cable tester can be as low as $10 for a simple continuity tester. Bulk cable (Cat5e or Cat6) costs roughly $50–$100 per 1000 feet (305 meters) depending on quality and shielding. RJ45 connectors are cheap, often $0.10–$0.30 each when bought in bulk.
However, for most home users, buying pre-made cables is simpler and often more reliable, especially if you only need a few. Pre-made cables are factory-tested and guaranteed to meet performance standards, while hand-crimped cables can have subtle issues like improper twist retention or poor contact that degrade performance.
Alternatives to Traditional Color Codes
In some specialized environments, you may encounter cables that do not follow the standard color code. For example, some manufacturers use different colors for their own proprietary wiring, but these are rare and usually require a specific connector. There are also “pass-through” RJ45 connectors that allow the wires to extend through the connector, making it easier to verify the color order before crimping—these are not a different color code, but a design that makes the standard code easier to use.
Another alternative is to use pre-terminated cable assemblies with molded connectors, which eliminate the need to deal with color codes altogether. These are the most common type of Ethernet cable you buy at a store.
Frequently Asked Questions
Does the color code affect internet speed?
No, the color code itself does not affect speed. What matters is that the wiring is consistent and that the cable meets the required category (Cat5e, Cat6, etc.). If you wire a cable incorrectly (e.g., using T568A on one end and T568B on the other), it becomes a crossover cable, which may still work at full speed if your devices support Auto-MDIX, but it can cause a link failure on older equipment.
Can I use T568A and T568B on the same cable?
You can, but that creates a crossover cable. If you need a straight-through cable, both ends must use the same standard. Using a crossover cable between a computer and a switch will usually still work today because of Auto-MDIX, but it is not recommended for new installations.
What is the difference between Cat5e and Cat6 color codes?
There is no difference in the color code itself; both use the same T568A or T568B wiring schemes. The difference is in the cable construction—Cat6 has tighter twists and better insulation to support higher frequencies (up to 250 MHz vs. 100 MHz for Cat5e). The color code is identical.
Why are the pairs twisted?
Twisting the pairs cancels electromagnetic interference (EMI) from external sources and reduces crosstalk between pairs. Each pair has a different twist rate to minimize interference between them. The color code helps you maintain the correct pairing when terminating.
Do I need a crossover cable for PC-to-PC connections?
If you are connecting two computers directly without a switch, a crossover cable was traditionally required. However, most modern network cards have Auto-MDIX, which automatically detects the cable type and adjusts the signal path, so a straight-through cable usually works fine. For older equipment, a crossover cable is still needed.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Handwriting vs Typing for Digital Note Taking2,400 words
- Configure SSL Certificate HAProxy: Step-by-Step
- Ryobi Hybrid Tools: Smart Buy? Here’s Why
- M4 vs M3: Apple Silicon Compared
- Red Flags: Avoid a Social Media Platform?
- Can a Ford Sedan Beat a Mustang? Facts