
A color code is a system for encoding and representing non-color information with
color
Color (or colour in English in the Commonwealth of Nations, Commonwealth English; American and British English spelling differences#-our, -or, see spelling differences) is the visual perception based on the electromagnetic spectrum. Though co ...
s to facilitate communication. This information tends to be
categorical (representing unordered/qualitative categories) though may also be sequential (representing an ordered/quantitative variable).
History
The earliest examples of color codes in use are for long-distance communication by use of flags, as in
semaphore communication. The
United Kingdom
The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom (UK) or Britain, is a country in Northwestern Europe, off the coast of European mainland, the continental mainland. It comprises England, Scotlan ...
adopted a color code scheme for such communication wherein
red signified
danger and
white
White is the lightest color and is achromatic (having no chroma). It is the color of objects such as snow, chalk, and milk, and is the opposite of black. White objects fully (or almost fully) reflect and scatter all the visible wa ...
signified
safety
Safety is the state of being protected from harm or other danger. Safety can also refer to the control of recognized hazards in order to achieve an acceptable level of risk.
Meanings
The word 'safety' entered the English language in the 1 ...
, 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.
Encoded Variable
A color code encodes a variable, which may have different representations, where the color code type should match the variable type:
*
Categorical variable
In statistics, a categorical variable (also called qualitative variable) is a variable that can take on one of a limited, and usually fixed, number of possible values, assigning each individual or other unit of observation to a particular group or ...
– the variable may represent discrete values of unordered qualitative data (e.g. blood type)
**
Binary variables are typically treated as a categorical variable (e.g.
sex)
*
Quantitative variable – the variable represents ordered, quantitative data (e.g. age)
** Discrete quantitative data (e.g. the 6 sides of a
die: 1,2,3,4,5,6) are sometimes treated as a categorical variable, despite the ordered nature.
Types
The types of color code are:
* Categorical – the colors are unordered, but are chosen to maximize saliency of the colors, by maximizing
color difference between all color pair permutations.
* Continuous – the colors are ordered and form a smooth color gradient.
* Discrete – only a subset of a continuous color code are used (still ordered), where each is distinguishable from the others.
Categorical
When color is the only varied attribute, the color code is ''unidimensional''. When other attributes are varied (e.g. shape, size), the code is ''multidimensional'', where the dimensions can be ''independent'' (each encoding separate variables) or ''redundant'' (encoding the same variable). Partial redundancy sees one variable as a subset of another.
For example,
playing card suits are multidimensional with color (black, red) and shape (club, diamond, heart, spade), which are partially redundant since clubs and spades are always black and diamonds and hearts are always red. Tasks using categorical color codes can be classified as identification tasks, where a single stimulus is shown and must be identified (
connotatively or denotatively), versus search tasks, where a color stimulus must be found within a field of heterogenous stimuli.
Performance in these tasks is measured by speed and/or accuracy.
The ideal color scheme for a categorical color code depends on whether speed or accuracy is more important.
Despite humans being able to distinguish 150 distinct colors along the hue dimension during comparative task, evidence supports that color schemes where colors differ only by hue (equal
luminosity
Luminosity is an absolute measure of radiated electromagnetic radiation, electromagnetic energy per unit time, and is synonymous with the radiant power emitted by a light-emitting object. In astronomy, luminosity is the total amount of electroma ...
and
colorfulness
Colorfulness, chroma and saturation are attributes of perceived color relating to chromatic intensity. As defined formally by the International Commission on Illumination (CIE) they respectively describe three different aspects of chromatic ...
) should have a maximum of
eight categories with optimized stimulus spacing along the hue dimension,
though this would not be color blind accessible. The
IALA recommends categorical color codes in seven colors: red, orange, yellow, green, blue, white and black. Adding redundant coding of luminosity and colorfulness adds information and increases speed and accuracy of color decoding tasks.
Color codes are superior to others (encoding to letters, shape, size, etc.) in certain types of tasks. Adding color as a redundant attribute to a numeral or letter encoding in search tasks decreased time by 50–75%, but in unidimensional identification tasks, using alphanumeric or line inclination codes caused less errors than color codes.
Several studies demonstrate a subjective preference for color codes over achromatic codes (e.g. shapes), even in studies where color coding did not increase performance over achromatic coding. Subjects reported the tasks as less monotonous and less inducing of eye strain and fatigue.
The ability to discriminate color differences decreases rapidly as the
visual angle subtends less than 12' (0.2° or ~2 mm at a viewing distance of 50 cm), so color stimulus of at least 3 mm in diameter or thickness is recommended when the color is on paper or on a screen. Under normal conditions, colored backgrounds do not affect the interpretation of color codes, but chromatic (and/or low) illumination of surface color code can degrade performance.
Criticism
Color codes present some potential problems. On forms and signage, the use of color can distract from black and white text.
[See, e.g., Michael Richard Cohen, ''Medication Errors'' (2007), p. 119.]
Color codes are often designed without consideration for accessibility to
color blind and blind people, and may even be inaccessible for those with normal color vision, since use of many colors to code many variables can lead to use of confusingly similar colors.
Only 15–40% of the colorblind can correctly name surface color codes with 8–10 color categories, most of which test as mildly colorblind. This finding uses ideal illumination; when dimmer illumination is used, performance drops sharply.
Examples
Systems incorporating color-coding include:
*In electricity:
**
25-pair color code – telecommunications wiring
**
ANSI Z535.1 Color Safety Code Standards
**
Audio and video interfaces and connectors § Color codes
**
Optical fibers § Color codes
**
Electrical wiring
Electrical wiring is an electrical installation of Electrical cable, cabling and associated devices such as switches, distribution boards, sockets, and light fittings in a structure.
Wiring is subject to safety standards for design and in ...
– AC power phase, neutral, and grounding wires
**
Electronic color code AKA resistor or EIA color code (today – IEC 60062:2016)
**
Ethernet twisted-pair wiring – local area networks
**
Jumper cables used to jump-start a vehicle
**
PC99 connectors and ports
**
Surround sound ports and cables
**
Three-phase electric power § Color codes (electrical wiring)
*In video games
**
Health
Health has a variety of definitions, which have been used for different purposes over time. In general, it refers to physical and emotional well-being, especially that associated with normal functioning of the human body, absent of disease, p ...
and
magic points
Magic or magick most commonly refers to:
* Magic (supernatural), beliefs and actions employed to influence supernatural beings and forces
** ''Magick'' (with ''-ck'') can specifically refer to ceremonial magic
* Magic (illusion), also known as st ...
** To distinguish friend from foe, for instance in ''
StarCraft'', ''
Halo'', or ''
League of Legends
''League of Legends'' (''LoL'', commonly referred to as ''League'', is a multiplayer online battle arena video game developed and published by Riot Games. Inspired by ''Defense of the Ancients'', a Mod (video games), custom map for ''Warcraf ...
''
** To distinguish rarity or quality of items in adventure and
role-playing game
A role-playing game (sometimes spelled roleplaying game, or abbreviated as RPG) is a game in which players assume the roles of player character, characters in a fictional Setting (narrative), setting. Players take responsibility for acting out ...
s
*In navigation:
**
Characteristic light
**
Navigation light
A navigation light, also known as a running or position light, is a source of illumination on a watercraft, aircraft or spacecraft, meant to give information on the craft's position, heading, or status. Some navigation lights are colour-code ...
**
Sea mark
**
Traffic light
Traffic lights, traffic signals, or stoplights – also known as robots in South Africa, Zambia, and Namibia – are signaling devices positioned at intersection (road), road intersections, pedestrian crossings, and other locations in order t ...
s
*Other technology:
** At point of sale (especially for
packaging
Packaging is the science, art and technology of enclosing or protecting products for distribution, storage, sale, and use. Packaging also refers to the process of designing, evaluating, and producing packages. Packaging can be described as a coo ...
within a huge range of
products: to quickly differentiate variants, brands, categories)
** ANSI Standardized Safety Colors
ANSI Z535
ANSI Z535 are American-developed Technical standard, standards designed to improve the identification of potential hazards to workers and/or property. The identifications are called Hazardous Communication (HazCom). ANSI Z535 sets the design and ...
**
Bottled gases
**
Fire extinguishers
**
Kerbside collection
**
Pipe marking
**
Queen bee birth year code
**
Underground utility location
**
Hospital emergency codes often incorporate colors (such as the widely used "Code Blue" indicating a
cardiac arrest
Cardiac arrest (also known as sudden cardiac arrest CA is when the heart suddenly and unexpectedly stops beating. When the heart stops beating, blood cannot properly Circulatory system, circulate around the body and the blood flow to the ...
),
*In military use:
**
Homeland Security Advisory System
**
Artillery shell
A shell, in a modern military context, is a projectile whose payload contains an explosive, incendiary device, incendiary, or other chemical filling. Originally it was called a bombshell, but "shell" has come to be unambiguous in a military ...
s and other munitions, which are color-coded according to their pyrotechnic contents
**
List of Rainbow Codes
**
NATO Military Symbols for Land Based Systems
**
Rainbow Herbicides
The Rainbow Herbicides are a group of tactical-use chemical weapons used by the United States military in Southeast Asia during the Vietnam War. Success with Project AGILE field tests in 1961 with herbicides in South Vietnam was inspired by the ...
*In social functions:
**
Black hat hacking,
white hat,
grey hat
A grey hat (greyhat or gray hat) is a computer hacker or computer security expert who may sometimes violate laws or typical ethical standards, but usually does not have the malicious intent typical of a black hat hacker.
The term came into u ...
**
Blue-collar worker
A blue-collar worker is a person who performs manual labour, manual labor or Tradesman, skilled trades. Blue-collar work may involve skilled or unskilled labor. The type of work may involve manufacturing, retail, Warehouse, warehousing, mining, ...
,
white-collar worker
A white-collar worker is a person who performs professional service, desk, managerial, or administrative work. White-collar work may be performed in an office or similar setting. White-collar workers include job paths related to government, co ...
,
pink-collar worker,
grey-collar,
green-collar worker
**
Handkerchief code
**
ISO 22324, Guidelines for color-coded alerts in public warning
**
Cooper's Color Code of the combat mindset
**
Rank in judo
**
Ribbon
A ribbon or riband is a thin band of material, typically cloth but also plastic or sometimes metal, used primarily as decorative binding and tying. Cloth ribbons are made of natural materials such as silk, cotton, and jute and of synthetic mate ...
colors ''see:''
:Ribbon symbolism
* In religion:
**
Clerical vestments, frontals and altar hangings in Christian churches
See also
*
Color coding in data visualization
*
Secondary notation
References
External links
*
{{Authority control
Encodings