A secondary color is a color made by mixing two primary colors in a given color space. Some examples are the following:
For the human eye, the best primary colors of light are red, green, and blue. Combining the wavelengths of light we see as these colors produces the greatest range of visible color.
That is, the primary and secondary RGB colors (with secondary colors in boldface) are:
Because color is defined as the wavelengths of the emitted light, combining RGB colors means adding light (thus the term "additive color"), and the combinations are brighter. When all three primaries (or for that matter all three secondaries) are combined in equal amounts, the result is white.
The RGB secondary colors produced by the addition of light turn out to be the best primary colors for pigments, the mixing of which subtracts light.
Pigments, such as inks and paint, display color by absorbing some wavelengths of light and reflecting the remainder. When pigments are combined, they absorb the combination of their colors, and reflect less. Thus, combining pigments results in a darker color. This is called subtractive color-mixing, as mixing pigments subtracts wavelengths from the light that is reflected.
The mixture of equal amounts of these colors produce the secondary colors red, blue, and "lime" green (the RGB primary colors of light), as follows:
That is, the primary and secondary CMY colors (with secondary colors in boldface) are:
Ideally, combining three perfect primary colors in equal amounts would produce black, but this is impossible to achieve in practice. Therefore a "key" pigment, usually black, is added to printing to produce dark shades more efficiently. This combination is referred to as CMYK, where K stands for Key.
Before the discovery of CMY, at least as far back as Goethe, the best primary colors were thought to be red, yellow, and blue. These are used even today in painting. Mixing these pigments in equal amounts produces orange, green, and purple: