How Color Perception Works — Biology of Color

Photo: fijaos88 / Pexels
Color feels like a property of the world. Lemons are yellow, blood is red, the sky is blue. But color is not in the lemon. It is a construction your nervous system builds from a narrow slice of electromagnetic radiation, using only three kinds of light sensor and a lot of comparison. Strip the brain away and there is no yellow, only photons of different wavelengths bouncing off a peel. This article follows that construction from light source to cone cell to cortex, then looks at what happens when the machinery differs, as it does in color blindness, in other animals, and in a famous photograph of a dress.
Educational content, not medical advice. Talk to your doctor before changing any medication, treatment, or routine. Information here reflects current research but every person's situation differs.
Key takeaways
- Visible light is a small band of wavelengths, roughly 380 to 750 nanometers, and objects reflect some of those wavelengths and absorb others.
- Human color vision starts with three cone types (S, M, and L) whose pigments peak near 420, 530, and 560 nanometers.
- A single cone cannot report a wavelength. Color comes from comparing the responses of all three types.
- The brain adjusts for the color of the light source, which is why a white page looks white in sunlight and under a lamp, and why one photograph of a dress split the internet.
- Red-green color vision deficiency affects about 1 in 12 males and 1 in 200 females of Northern European ancestry, and results from changes in genes on the X chromosome.
The physics: light is a spectrum, objects are filters
Visible light occupies wavelengths from roughly 380 nanometers (violet) to 750 nanometers (red), a thin window in an electromagnetic spectrum that also includes radio waves, microwaves, X-rays, and gamma rays. Textbooks differ by a few tens of nanometers at the edges, since sensitivity fades gradually and does not stop at a line. The Sun emits a large share of its energy in this range and the atmosphere is largely transparent to it, so it is reasonable that eyes evolved receptors tuned to where the photons were.
Objects do not "have" color in the way they have mass. They absorb some wavelengths and reflect others, and the pattern of reflection is called the object's reflectance. A ripe tomato reflects mostly longer wavelengths and absorbs much of the rest. Put it under a lamp that emits almost no long-wavelength light, such as a narrow-band sodium streetlamp, and there is little for it to reflect. It looks dark and brownish, because the color you see depends on three things at once: the light source, the object, and the observer.
An analogy helps here. Think of an object as an equalizer on a stereo. The light source is the music, a mix of frequencies at various volumes. The object turns some bands down and leaves others up. What reaches your ear, or in this case your eye, is the music after the equalizer. Your visual system then has the task of guessing what the original music sounded like, which is a harder problem than it first appears. We return to that problem in the section on color constancy.
For a deeper look at how white light divides into its parts, see our article on Newton's prism experiment, and for a different color-making mechanism, the one behind rainbows, see how rainbows form.
The biology: rods, cones, and the molecule that catches light
The retina, the thin neural layer at the back of the eye, contains two classes of photoreceptor. Rods work in dim light and do not distinguish color, which is why moonlit scenes look gray. Cones need more light, produce color vision, and are packed most densely in the fovea, the small central pit of the retina used for reading and other fine detail. One summary of the cone page on Wikipedia, citing HyperPhysics, gives about six to seven million cones in a human eye against about 92 million rods, and describes the fovea as a rod-free area about 0.3 millimeters across (Wikipedia: Cone cell). Older textbooks often quote about 120 million rods, so you will see both figures in print. Rods outnumber cones by more than ten to one by either count, yet cones carry the color.
Inside each photoreceptor, a protein called an opsin holds a small molecule called retinal, which is made from vitamin A. When a photon of the right energy strikes retinal, the molecule changes shape. That change tilts the opsin, triggers a chain of chemical reactions inside the cell, and ends with a change in the electrical signal the cell passes on. This sequence is called phototransduction. It is the same trick every time: a molecular switch that flips when light hits it.
What makes the three cone types different is the opsin. Small differences in the opsin's amino acid sequence change which wavelengths flip the switch most easily.
| Cone type | Common name | Approximate peak sensitivity | Typical range reported |
|---|---|---|---|
| S (short wavelength) | "Blue" | About 420 nm | 420 to 440 nm |
| M (medium wavelength) | "Green" | About 530 nm | 534 to 545 nm |
| L (long wavelength) | "Red" | About 560 nm | 564 to 580 nm |
Source: Wikipedia: Cone cell and Wikipedia: Trichromacy, which cite Kandel and colleagues' Principles of Neural Science for the peaks. The ranges in the right column vary by measurement method and by person.
Notice that the L cone, nicknamed "red," actually peaks in the yellow-green part of the spectrum, and that its curve overlaps heavily with the M cone's. The nicknames are a convenience. The overlap is not a flaw, as the next section explains.
Color is a ratio, not a wavelength
The central idea of the whole subject is this. A single cone cannot tell you what wavelength struck it. A cone's output depends on how many photons it absorbs, and a dim light at the cone's favorite wavelength can produce exactly the same signal as a bright light at a wavelength the cone likes less. This is the principle of univariance: the cell reports "how much," never "which."
The way out is to compare. With three cone types that have overlapping sensitivity curves, each wavelength produces a distinctive pattern across the three. A light near 580 nanometers excites L cones strongly, M cones moderately, and S cones hardly at all. The brain reads that pattern, not any single signal, and calls it yellow. Change the wavelength a bit and the ratios shift in a predictable way. Change only the brightness and all three signals scale together, leaving the ratios intact, which is why a dim yellow and a bright yellow can both look yellow.
Think of three people estimating the position of a sound in a dark room. Each hears only loudness, so none can place the source alone. Together, comparing how loud the sound is to each of them, they can triangulate. The overlap between their hearing is what makes the comparison informative.
Why three primaries can fake nearly everything
Because only the three-way pattern matters, different mixtures of light can produce the same pattern. A pure yellow light at 580 nanometers and a blend of red and green light can both give the same L:M:S ratio, and the visual system cannot tell them apart. Such physically different but visually identical lights are called metamers, and the phenomenon is metamerism.
Metamerism is the reason a screen can show a convincing orange, a tomato, or a lawn using only red, green, and blue light. It also explains why two fabrics that match in a shop can clash outdoors. They are metamers under the shop's lights, with different reflectances that diverge under sunlight.
The theory behind this has a long history. Thomas Young proposed that three kinds of receptor could account for color matching, and Hermann von Helmholtz expanded the idea in the mid-nineteenth century using experiments in which observers mixed lights to match a target; people with normal vision needed three. Physiological evidence arrived later, with Gunnar Svaetichin's recordings in 1956 (Wikipedia: Trichromacy). The theory predicted three receptor types decades before anyone could look at one.
From the retina to the cortex: opponent channels
Cone signals are not sent to the brain as three raw feeds. Within the retina, they are combined and subtracted. By the time signals leave the eye, they are carried in roughly three channels: one that tracks overall brightness, one that compares L and M signals (the red-green axis), and one that compares S against the sum of L and M (the blue-yellow axis). This is the opponent process idea associated with Ewald Hering, and it complements the three-receptor theory instead of competing with it. Receptors do the first stage. Opponent circuits do the second.
The opponent structure explains why some color combinations sound odd. We describe colors as yellowish green or bluish red, but not as reddish green, because the red-green channel can signal one direction or the other at a time, not both.
The signals then travel through the optic nerve to the lateral geniculate nucleus in the thalamus and on to the primary visual cortex at the back of the head. Cells there compute local ratios of cone activity. Wikipedia's article on color constancy notes that "double-opponent" cells in primary visual cortex perform a calculation similar to the retinex model, and that human brain imaging points to the cortical area V4 as important for color, with damage there linked to cerebral achromatopsia, a loss of color vision caused by brain injury rather than by the eye (Wikipedia: Color constancy). The classic experiments that revealed how cortical cells respond to visual features are described in our piece on Hubel and Wiesel's visual cortex experiments.
For the anatomy that comes before all of this, including the cornea, lens, and the route of the optic nerve, see our articles on how the eye works and how the human eye works. For the later stages in which the cortex assembles an image from the processed signals, how the brain works gives the wider context.
Color constancy: the brain subtracts the light
A sheet of white paper looks white in noon sunlight and also under a warm indoor bulb, even though the light bouncing off it into your eye is radically different in the two settings. Under the bulb the paper reflects a lot of long-wavelength light, and the raw cone signals would call it orange. You do not see orange. You see white paper under a yellowish lamp.
This is color constancy: the visual system estimates the color of the illumination and discounts it, recovering something close to the surface's actual reflectance. Two kinds of mechanisms are proposed. One is sensory adaptation, in which cones adjust their sensitivity to local light levels, though this is incomplete. The other is a kind of unconscious inference in which the brain uses cues, such as shadows, nearby surfaces, and the usual colors of familiar objects, to work out the light. Constancy works only when the illumination contains a range of wavelengths; under a narrow-band lamp, there is not enough information to recover the true colors (Wikipedia: Color constancy).
Edwin Land and the retinex
The inventor and scientist Edwin Land brought this problem to wide attention. He described in a 1959 Scientific American article that observers shown superimposed black-and-white transparencies, lit with certain colored lights, perceived nearly full color. His retinex theory, laid out in a 1977 Scientific American article and in a 1971 paper with John McCann, proposed that the brain computes colors by comparing ratios of light across the scene, with the name blending "retina" and "cortex." Retinex-style algorithms are still used in image processing, although human color perception is more complex than the original model.
The dress
Constancy usually works so smoothly that we never notice it. It becomes visible when the cues are ambiguous. In late February 2015, a poorly exposed photograph of a dress, taken about a week before a wedding in Scotland, spread around the world after a friend of the couple, Caitlin McNeill, posted it to Tumblr. Some people saw blue and black, and others saw white and gold. More than ten million tweets mentioned it within a week (Wikipedia: The dress).
The first large survey, published in Current Biology by Rosa Lafer-Sousa, Katherine Hermann, and Bevil Conway, collected 1,400 responses: 57% saw blue and black, 30% saw white and gold, 11% saw blue and brown, and 2% reported something else. Women and older people were more likely to report white and gold. When the photo was simulated under yellow-tinted lighting, almost everyone saw blue and black, and under blue-biased lighting, white and gold. The dress itself was a royal blue and black lace dress, and a properly exposed photo shows it that way.
The leading explanation is that people's brains made different unconscious assumptions about the lighting in the photo, either cool daylight or warm indoor light, then subtracted that assumed light to estimate the cloth's color. A later study led by Pascal Wallisch reported that early risers tended to see white and gold while night owls tended to see blue and black. There is no settled consensus on the full explanation. What the dress demonstrates is that both groups were running the same machinery on the same pixels, and the machinery has to guess.
Color vision deficiency: when the cones differ
About 1 in 12 men have some form of color vision deficiency, according to the National Eye Institute (NEI: Color blindness). The standard term is better than "color blindness," because most affected people see color, just a different range of it. Few see in black and white.
MedlinePlus Genetics gives the prevalence for people of Northern European ancestry as about 1 in 12 males and 1 in 200 females for red-green defects; blue-yellow defects affect fewer than 1 in 10,000 people worldwide and affect males and females equally; and blue cone monochromacy, the most severe form, occurs in about 1 in 100,000 (MedlinePlus Genetics). Prevalence varies by ancestry, and the male figure is often quoted as 8 percent.
| Type | Cone affected | What changes | Inheritance |
|---|---|---|---|
| Protanomaly / protanopia | L (long wavelength) | Certain reds look more green and less bright; in protanopia, red and green cannot be told apart | X-linked recessive |
| Deuteranomaly / deuteranopia | M (medium wavelength) | Certain greens look more red; deuteranomaly is the most common type and is usually mild | X-linked recessive |
| Tritanomaly / tritanopia | S (short wavelength) | Blue and green, and yellow and red, are harder to separate | Autosomal dominant |
| Blue cone monochromacy | L and M | Poor acuity and severely reduced color vision | X-linked recessive |
| Achromatopsia (complete) | Cones do not function | No color; may also affect acuity and light sensitivity | Varies |
Sources: NEI, MedlinePlus Genetics.
Why it is more common in men
The genes for the L and M opsins, called OPN1LW and OPN1MW, sit on the X chromosome. Males have one X chromosome, so a single altered copy is enough to produce red-green deficiency. Females have two, so an altered copy on one X is usually masked by a working copy on the other, and a female needs changes on both. That asymmetry yields the male-female gap. Blue-yellow defects are inherited differently (autosomal dominant), so they do not show this male bias. John Dalton, the chemist, gave the first scientific account of color blindness in a talk in 1794, published in 1798, and a genetic analysis of his preserved eye in 1995 confirmed that he had deuteranopia (Wikipedia: Color blindness).
Testing, correction, and research
The common screening test uses circles of colored dots hiding a number or letter that people with deficiency cannot see; the best-known version is the Ishihara test. The NEI notes that an eye doctor can usually diagnose with a simple test, that children may hide their difficulty, and that color vision can also change after eye injury or with age-related cataracts.
There is no cure for inherited color vision deficiency. Special glasses and contact lenses may help some people tell colors apart by increasing contrast between them, but they do not restore normal color vision, and the NEI says so directly. Gene therapy is a research area. In 2009, Katherine Mancuso and colleagues reported in Nature that gene therapy could treat red-green color blindness in adult primates (Mancuso et al., Nature 2009); the work involved adding a missing opsin gene to colorblind monkeys. Gene therapies for a severe type of deficiency are described by the NEI as promising, and none is available as a treatment for common red-green deficiency.
Other animals: different sensors, different worlds
Humans have three cone types. That is not a universal standard. It is one design among many.
Most mammals have two. Trichromacy evolved from pigments inherited from early vertebrates, and placental mammals lost two of these pigments, leaving most with only two cone types. An animal like a dog, then, has a color world that resembles a human with red-green deficiency. The usual illustration is that a red ball on green grass is easy for you to find and harder for a dog. Some primates gained a third pigment, which is why humans and our close relatives are among the exceptions (Wikipedia: Trichromacy). A leading explanation is that spotting ripe fruit and young leaves against foliage conferred an advantage, though that remains an inference.
Many birds have four. Most birds have retinas with four cone types, widely believed to support tetrachromatic color vision, plus colored oil droplets that further filter light. Some species use ultraviolet signals in mate selection and foraging. A 2015 study by Olsson and colleagues suggested that a fourth cone gives birds a wider visible range, but that their ability to tell nearby colors apart is similar to ours (Wikipedia: Tetrachromacy). Flowers that look plain yellow to us can have ultraviolet patterns visible to insects. Our article on how animals see the world differently goes into UV, infrared, and polarized light in more depth.
Some women may have four. Because the L and M opsin genes are on the X chromosome, some women carry two slightly different versions of one of them, and so could in principle have a fourth cone type. Estimates of how common this is vary widely, from about 15 percent in one study to as high as 50 percent in another, and having the cone is not the same as using it. In 2010, Gabriele Jordan and colleagues identified one woman, labeled cDa29, who could distinguish more colors than trichromats in tests (Wikipedia: Tetrachromacy). Clear behavioral evidence of functional human tetrachromacy remains scarce.
The mantis shrimp surprise
The mantis shrimp has between 12 and 16 types of photoreceptor, depending on the species, compared with the three cone pigments plus rod pigment in humans. Some species have 16 receptor classes in four groups: 12 for color analysis, six of them sensitive to ultraviolet, and four for polarized light. That sounds like a recipe for extraordinary color vision. A 2014 Science study by Hanne Thoen and colleagues found that the animals are actually poor at telling similar colors apart: they could not discriminate wavelengths less than about 25 nanometers apart, which led to the idea that they use their many receptors like a barcode scanner, identifying a color by which receptors fire instead of comparing them in a continuous space (Wikipedia: Mantis shrimp). A 2022 study by Streets and colleagues found no unequivocal evidence for a purely barcode-like system in a different species, which suggests that color opponency may also play a role. The story is still developing. For more, see our article on how mantis shrimp see so many colors.
The lesson is that more receptor types do not automatically mean finer color discrimination. How a nervous system combines the signals matters as much as how many sensors it has.
How screens and printers fake color
Because human color vision depends on three cone responses, a display can reproduce a huge range of colors using just three primaries. A phone screen has red, green, and blue subpixels. Driving them at different brightness levels produces cone activation ratios that match the ones a real-world spectrum would produce. The trick works because we are trichromats. An observer with four independent cone types would find a screen's colors off in places, since the three primaries cannot match every four-channel pattern.
| System | Primaries | Typical use | How it works |
|---|---|---|---|
| RGB (additive) | Red, green, blue light | Screens, projectors | Adds light at different intensities; all three at full strength gives white |
| CMYK (subtractive) | Cyan, magenta, yellow, key (black) | Printing | Inks absorb wavelengths from reflected light; black ink is added because the three colored inks alone give a muddy dark brown |
| HSL / HSV | Hue, saturation, lightness or value | Design software | Re-expresses RGB values in terms that are more intuitive to people |
| CIELAB | L*, a*, b* | Color science, quality control | Designed so equal numeric distances look roughly equally different |
For artists and designers, the practical consequences, including why a saturated screen color can be impossible to print, are covered in our articles on color theory and how digital color spaces work. For the related question of whether colors carry fixed emotional meanings, see the psychology of color.
What people get wrong about color
"Red is a wavelength." A wavelength is a physical property of light. "Red" is the experience produced when certain cone ratios occur. A single pure red wavelength and a mix of other wavelengths can produce the same red sensation.
"Colorblind people see in black and white." Complete color blindness, in which cones do not function, is rare. Most affected people have a reduced ability to separate particular hues, often red from green, and they see many colors normally.
"Everyone sees the same colors." The cone pigments differ slightly between individuals, and the proportions of L and M cones vary widely, so what is a precise match for one person may be an imprecise match for another. The dress is the extreme case. Whether two people share the same inner experience of red is a philosophical question that physiology cannot settle. What can be measured is that people agree well on which things match and which differ.
"Animals with more cone types see more colors." Not necessarily, as the mantis shrimp shows. Birds with four cone types may have a wider range of visible wavelengths without finer discrimination within the range.
"Colors exist in objects." Objects have reflectance. Color is the visual system's estimate of reflectance, corrected for the light, and expressed through three signals.
FAQ
Q: Is color real or just in our heads? A: Both. The wavelengths of light and the reflectance of surfaces are physical and measurable. The experience of "red" is a construction by the brain from cone signal ratios. Whether one person's experience matches another's is a philosophical question, but people agree closely on which colors match.
Q: Why can't I see ultraviolet or infrared? A: The three cone pigments are not sensitive to those wavelengths. Visible light is roughly 380 to 750 nanometers, and radiation outside that window does not trigger the opsins effectively. Humans can only see ultraviolet or infrared with instruments that convert them to visible light.
Q: Can color blindness be cured? A: Not at present. The National Eye Institute says there is no cure for inherited color vision deficiency, though most people adapt and special lenses may increase contrast between colors. Gene therapy worked in adult colorblind monkeys in a 2009 Nature study, and gene therapies for a severe type are being researched.
Q: Why do some people see "the dress" differently? A: Because the photo does not contain enough information to identify the lighting. People whose brains assumed bluish shadow saw white and gold. People who assumed warm, bright light saw blue and black. In the first large survey, 57% reported blue and black and 30% reported white and gold.
Q: Why is color blindness more common in men? A: The genes for the red-sensitive and green-sensitive opsins are on the X chromosome. Males have one X, so a single altered copy affects them. Females usually have a working copy on the second X, so both copies must be altered for the trait to appear. About 1 in 12 males and 1 in 200 females of Northern European ancestry have red-green deficiency.
Q: Do animals see fewer colors than we do? A: It depends on the animal. Most mammals have two cone types and a narrower range of hue discrimination than ours. Many birds have four cone types, and some insects and other animals see ultraviolet. The number of receptor types does not by itself determine how finely an animal can tell colors apart.
The takeaway
The most useful way to think about color is as a measurement with a correction applied. Three overlapping sensors report how much light they caught, the brain compares the three numbers to get a hue, and then it adjusts for its best guess about the lighting. Every part of that pipeline is a place where different people and different species can diverge: a gene variant that shifts a cone's peak, an extra receptor class, or a different assumption about the lamp in the room.
That is why the dress did not reveal a flaw in some viewers. It exposed an ordinary estimation step that is almost always invisible because the cues usually settle the question. Color is a good example of perception as inference, and the same logic runs through the optical illusions covered in our article on how optical illusions trick your brain and through the reconstruction of experience described in how memory works in the brain.
Sources
- National Eye Institute: Color blindness and types of color vision deficiency
- MedlinePlus Genetics: Color vision deficiency
- Mancuso K, et al. "Gene therapy for red-green colour blindness in adult primates." Nature 461:784-787 (2009). doi:10.1038/nature08401
- Wikipedia: Cone cell, Trichromacy, Color constancy, The dress, Tetrachromacy, and Mantis shrimp, which summarize and cite the primary studies named above (Lafer-Sousa et al. 2015, Thoen et al. 2014, Olsson et al. 2015, Jordan et al. 2010)
Follow new articles
Add SciHub101 to your feed reader to see new science and technology stories.
About the Author
SciHub101 is an independent science and technology publication founded and edited by Buğra Sözeri, a software engineer and app developer based in Türkiye. AI tools assist with drafting and research. Source documentation in the existing archive is uneven, and articles are being reviewed and corrected. The Editorial Team byline identifies editorial responsibility; it does not certify specialist or independent human review. Where we compare products, anything built by our own team is labelled as such — see the editorial guidelines and About page for how corrections and disclosures work.
Related Articles

How Kidneys Work — Filtration and Blood Pressure
Discover how kidneys filter 180 liters of blood daily, regulate blood pressure, and what happens when they fail. Nephrons, RAAS, dialysis explained.

How the Heart Works — Anatomy and Function
How the human heart pumps blood: chambers, valves, electrical conduction, cardiac cycle, and the most important diseases and treatments.

How the Eye Works: Light, the Retina, and How the Brain Builds Sight
Your eye contains 126 million photoreceptors but only one million output fibers to the brain — meaning the retina compresses visual data by a factor of 126 before it leaves the eye. What you see is a model your brain built, not a photograph it took.

Complete Biology Guide 2026 — How Life Works
The complete guide to biology in 2026: cells and genetics, evolution, the human body, neuroscience, disease, immune systems, and the future of genetic engineering.

What Happens to Your Body with No Sleep for 24 to 72 Hours
After 17 hours without sleep, your cognitive performance matches someone with a blood alcohol concentration of 0.05% — legally impaired to drive in most countries. After 24 hours, the equivalent is 0.10% — above the legal limit in all US states. After 72 hours, hallucinations are common, emotional regulation breaks down, and the immune system's ability to mount a response is measurably compromised. Sleep deprivation is not discomfort — it is a physiological insult to nearly every system in the body, and it unfolds on a precisely documented timeline.

What Happens to Your Brain When You Meditate
In 2005, Sara Lazar at Harvard found that experienced meditators had measurably thicker cortex in regions associated with attention and interoception — and that the thickness correlated with years of practice, not age. A year later the same group confirmed the finding with a larger sample. Since then, hundreds of neuroimaging studies have examined meditation's effects on brain structure and function, with results that are genuinely interesting, frequently overstated, and worth reading carefully. The brain does change. The question is how much, in whom, through what mechanism, and whether those changes explain the psychological effects people report.