QuestionLight

What Are the Primary Colors of Light? RGB Explained

Diagram of additive color mixing: red, green and blue circles overlapping to give yellow, cyan, magenta and white
Diagram of additive color mixing: red, green and blue circles overlapping to give yellow, cyan, magenta and white. Image: Piotrala (Public domain), via Wikimedia Commons

The primary colors of light are red, green and blue, usually written as RGB. Mixing these three colors in different amounts makes almost every other color the eye can see, and mixing all three at full brightness makes white. These colors are called primary because no combination of other colors can make all three.

Contents

The full answer

Light sources add together. When two beams of colored light overlap, the eye receives both sets of wavelengths, so the result is brighter and often a new color. This is called additive color mixing. The three additive primaries work as follows:

  • Red + green = yellow
  • Green + blue = cyan (a blue-green)
  • Blue + red = magenta (a purple-pink)
  • Red + green + blue = white

A common way to describe a color on a screen is with three numbers, one for each primary. In many devices, each number runs from 0 (none of that light) to 255 (full brightness). Pure red is (255, 0, 0), pure green is (0, 255, 0) and pure blue is (0, 0, 255). A medium gray is about (128, 128, 128), with equal amounts of all three.

The choice of red, green and blue is not arbitrary. These three colors are spread across the visible range, and they are chosen so that the widest possible set of colors can be made from them. Mixtures of only two primaries cannot reproduce the full range, which is why three are needed.

The science behind it

The mechanism is in the eye. The retina contains rod cells, which work in dim light, and three types of cone cells, which work in brighter light and respond to color. The three cone types have peak sensitivities at short, medium and long wavelengths, roughly in the blue, green and yellow-green regions. Each cone type responds to a wide range of wavelengths, not just one.

The brain compares the three signals. Yellow light at about 580 nm stimulates the medium and long cones strongly and the short cones weakly, and the brain reads that pattern as yellow. A screen can produce the same cone pattern with a mix of red and green light, so the eye cannot tell the difference. This is why a yellow pixel made of red and green light looks the same as a pure yellow light.

Screens use this trick directly. A typical display has a grid of pixels, and each pixel is made of red, green and blue subpixels. The subpixels are very small, so from normal viewing distance they blend into a single color. Changing the brightness of each subpixel sets the color of the pixel. Cameras use the same idea, with red, green and blue filters over the sensor elements.

An everyday example

Pick up a phone or look at a television, and then bring a magnifying glass close to the screen. You will see tiny colored dots or stripes, usually red, green and blue, arranged in a regular pattern. Turn the screen to a plain white background and the dots are all lit at full strength. A plain yellow background lights only the red and green dots. A plain blue background lights only the blue dots.

This is only an observation: never look directly at a bright light source or at the Sun, and do not take apart a screen or any electrical device. Stage lighting and LED bulbs use the same principle, with red, green and blue LEDs mixed to produce a wide range of colors.

Paints, inks and dyes work in the opposite way. A paint absorbs some wavelengths and reflects the rest, so each added layer removes light. The primary colors for pigments are cyan, magenta and yellow (see why objects have color), which is why color printers use cyan, magenta and yellow inks, plus black for deeper shadows. Mixing the pigment primaries gives darker colors, and mixing them all together gives a dark brown or gray in practice, because the inks are not perfect.

Older art lessons often use red, yellow and blue as primaries. That set is a useful model for mixing paint but it is not the same as the light primaries. The colors of light and the colors of pigment are two different systems, and the visible light page explains the wavelengths that make up the light side.

Common misconceptions

  • Red, yellow and blue are the primary colors of light. That is the painter’s set. Light uses red, green and blue, because yellow light is a mix of red and green light for the eye.
  • Mixing colors of light makes them darker. Adding light always makes the result brighter. Darkness comes from removing light, which is what happens when paints or filters are mixed.
  • Pure yellow light must contain yellow wavelengths. Pure yellow light is one option, but a red and green mix produces the same color to the eye. Two different spectra can look identical, which is called metamerism.

Frequently asked questions

What are the three primary colors of light?

The three primary colors of light are red, green and blue, often written as RGB. Mixing them at different brightnesses can produce nearly every color that the human eye can see.

What do red and green light make together?

Red and green light added together make yellow. Green and blue make cyan, and blue and red make magenta. All three at full brightness make white.

Why are red, green and blue the primary colors of light?

The human retina has three types of cone cells, which respond most strongly to long, medium and short wavelengths. The brain compares their signals, so three light sources are enough to match most colors.

Are the primary colors of light the same as paint primaries?

No. Light primaries are red, green and blue, while the primaries for paint and printer ink are cyan, magenta and yellow. Light adds brightness when mixed, but paint removes light when mixed.

What is the RGB system used for?

The RGB system describes colors on phone screens, TVs, computer monitors and digital cameras. Each pixel has red, green and blue subpixels whose brightness is set from 0 to 255 in many devices.

Sources and further reading

  • OpenStax, "University Physics Volume 3"
  • Encyclopaedia Britannica, "Color"

Cite this page

“What Are the Primary Colors of Light? RGB Explained.” Atoms & Forces, https://science.bigworldlist.com/questions/what-are-the-primary-colors-of-light/.

More about Visible light