A color code or colour code is a system for displaying information by using different colors.
The earliest examples of color codes in use are for long distance communication by use of flags, as in semaphore communication. The United Kingdom adopted a color code scheme for such communication wherein red signified danger and white signified safety, with other colors having similar assignments of meaning.
As chemistry and other technologies advanced, it became expedient to use coloration as a signal for telling apart things that would otherwise be confusingly similar, such as wiring in electrical and electronic devices, and pharmaceutical pills.
The use of color codes has been extended to abstractions, such as the Homeland Security Advisory System color code in the United States. Similarly, hospital emergency codes often incorporate colors (such as the widely used "Code Blue" indicating a cardiac arrest), although they may also include numbers, and may not conform to a uniform standard.
Color codes do present some potential problems. On forms and signage, the use of color can distract from black and white text. They are often difficult for color blind and blind people to interpret, and even for those with normal color vision, use of a large number of colors to code a large number of variables can lead to use of confusingly similar colors. 
Systems incorporating color-coding include:
- In electronics:
- Electrical wiring – AC power phase, neutral, and grounding wires
- Electronic color code – for electronic components
- Jumper cables used to jump-start a vehicle
- Surround sound ports and cables
- Audio connectors
- Video connectors
- Optical fibers
- PC connectors and ports
- Three-phase electric power (electrical wiring)
- 25-pair color code – telecommunications wiring
- Ethernet twisted-pair wiring - local area networks
- In video games
- In navigation:
- Other technology:
- In military use:
- NATO Military Symbols for Land Based Systems#Affiliation
- Artillery shells and other munitions, which are color-coded according to their pyrotechnic contents
- Rainbow Herbicides
- List of Rainbow Codes
- In social functions:
- At point of sale (especially for packaging within a huge range of products: to quickly differentiate variants, brands, categories)
- Transactions of the American Society of Civil Engineers: Volume 29 (1893), p. 507.
- See, e.g., Michael Richard Cohen, Medication Errors (2007), p. 119.
- "Color-Coded Loot". Giant Bomb. Retrieved 13 June 2016.
|Wikimedia Commons has media related to Color code.|