Color Blindness Simulator, Explained
After reading this you can predict how a chart, map or interface looks to a person with red-green or blue-yellow color deficiency, and you can decide which color pairs to keep and which to fix.
What the simulator does
Human color vision starts with three cone types in the retina: L (long wavelengths, roughly red), M (medium, green) and S (short, blue). A person with normal trichromatic vision uses all three. Most color blindness comes from one cone type being missing or shifted, which collapses part of the color space onto a line.
The simulator takes each pixel of your image and passes it through a matrix that mimics the missing cone. The output is a new image that reproduces, as closely as a model can, what the deficient eye receives. If two colors sit on the same collapsed line, they come out identical in the simulation. That is the whole point: it shows you where distinctions disappear.
Consider a red line and a green line on a white chart. To you they are obviously different. Run the deuteranopia simulation and both turn into nearly the same muddy yellow-brown. A viewer with deuteranopia cannot tell your two data series apart, and the simulator makes that failure visible in one click.
The four conditions modeled
- Protanopia
- The L cone is missing. Reds look dark and shift toward the green-yellow region. Red and green become hard to separate. Affects roughly 1% of men.
- Deuteranopia
- The M cone is missing. The most common red-green deficiency. Reds and greens both drift toward a shared yellow-brown. Affects roughly 1% of men.
- Tritanopia
- The S cone is missing. Rare (well under 0.1%). Blue and yellow collapse; blue looks greenish and yellow looks pink or grey.
- Achromatopsia
- No functioning color discrimination at all. The image becomes greyscale based on luminance. This is the strictest test: if your design survives here, it survives everything.
The first three are dichromacies, the total loss of one cone. Milder anomalous forms (protanomaly, deuteranomaly) exist where the cone is shifted rather than absent. The dichromat simulation is the worst case, so passing it means the milder cases pass too.
When to use it, and when not
Use it whenever meaning depends on color. Charts with colored lines, maps with colored regions, status indicators (red bad, green good), form validation, subway diagrams, heatmaps. About 8% of men and 0.5% of women have some red-green deficiency, so for a mixed audience of 1000 people you are designing for roughly 40 to 45 who see color differently.
Do not use it as a substitute for real luminance contrast checking on text. A simulator tells you whether two colors differ for a color-blind viewer; it does not tell you whether text is readable against its background. Those are separate tests. Also do not treat the output as a medical device. It is a design aid built on a population-average model, not a diagnosis of any individual's vision.
The quickest single check is achromatopsia. If your image still communicates in pure greyscale, color is not the only channel carrying information, and every color-blind viewer is covered.
The math, and why it is a matrix
The simulation uses the Brettel/Viénot linear-RGB transforms, the standard model for dichromat vision. It works in three steps. First, convert the pixel from gamma-encoded sRGB to linear RGB. Second, apply a 3x3 matrix that projects the color onto the plane the dichromat can still see. Third, convert back to sRGB for display.
Here R, G, B are the linear channel values in the range 0 to 1, and R', G', B' are the simulated linear values. The matrix M depends on the condition. For deuteranopia a widely used matrix is:
The rows are not independent. The first two rows are nearly proportional, which is exactly what "one lost dimension" means: red and green outputs move together, so colors that differed only in the red-green direction end up equal. The gamma step matters. Skipping it and applying the matrix to raw 0-255 values gives visibly wrong, too-dark results, because sRGB is not linear in intensity.
A worked example on one pixel
Take pure red, the tool's default sample color, #FF0000, and push it through deuteranopia.
Red to muddy yellow under deuteranopia
- Start in sRGB: (R, G, B) = (255, 0, 0). Normalize to
(1, 0, 0). - Linearize. For
1.0the linear value is1.0; for0.0it is0.0. Linear input is(1, 0, 0). - Apply the matrix. Only the first column matters because G and B are zero: R' = 0.367, G' = 0.280, B' = -0.012.
- Clamp B' to
0. Linear output is(0.367, 0.280, 0). - Convert back to sRGB. Gamma encoding of
0.367is about0.637, and0.280is about0.573. Scale to 0-255: roughly(162, 146, 0), hex#A29200.
Pure red became a dark olive-yellow. Now run pure green #00FF00 through the same matrix. The second column gives linear (0.861, 0.673, 0.043), which encodes to roughly (240, 214, 57), a brighter yellow. Both reds and greens have collapsed toward the yellow axis; they are no longer opposites, only lighter and darker versions of the same hue.
Explore the collapse yourself
Reading the result
Look for places where two regions that were different now look the same. Those are the failures. A good workflow is to open the simulated image next to the original and scan for merged colors.
Pay attention to luminance, not just hue. Even under achromatopsia, a light color and a dark color remain distinguishable because they map to different greys. So the fix for a red-green problem is rarely "pick a different red". It is usually to add a second cue: different brightness, a pattern, a label, a line style, or a shape. If your red and green also differ in lightness, they survive the greyscale test even when the hue is gone.
| Pair | Normal difference | After simulation | Safe? |
|---|---|---|---|
| Red vs green (same brightness) | Strong | Nearly identical | No |
| Red vs blue | Strong | Still distinct | Yes |
| Dark red vs light green | Strong | Different brightness | Mostly |
| Orange vs yellow-green | Moderate | Merged | No |
| Blue vs orange | Strong | Distinct | Yes |
Common mistakes
Do not apply the color matrix to gamma-encoded sRGB values directly. The transform is defined in linear light. Skipping linearization typically darkens the result and shifts hues, so you end up debugging a broken simulation instead of your design.
A second mistake is testing only red-green and forgetting tritanopia and achromatopsia. Red-green is the most common, but a blue-yellow color scheme can still fail for a tritanope. Run all four conditions before you call a design safe.
A third mistake is trusting hue alone in the fix. Swapping one green for a slightly different green does nothing if both greens still land on the dichromat's confusion line. Verify the new colors in the simulator rather than assuming a fresh hue solves it.
Finally, remember the model is an average. Real deficiencies vary in severity, and anomalous trichromats see more color than the dichromat simulation shows. Treat a passing simulation as necessary, not as a guarantee for every individual.
Related tools
Once you know which colors matter, the Image Color Picker & Palette lets you read the exact hex values you are testing and pull the full palette out of a chart. To describe an image by its overall color rather than individual pixels, the Dominant & Average Color tool reports the average and dominant colors. When you produce a revised version, Image Diff shows a pixel-exact heatmap of what changed between the old and new artwork. If your image contains labels you want to read as text, Image OCR extracts them, and the EXIF Viewer & Remover handles the metadata side.
Frequently asked questions
Does the simulation change my original file?
No. It produces a new simulated image for you to compare. Everything runs locally in your browser; your images are never uploaded to any server.
Which condition should I test first?
Deuteranopia, because it is the most common red-green form, then achromatopsia as the strict worst case. If the design works in both, add tritanopia and protanopia to be thorough.
Why do red and green become the same color instead of disappearing?
The missing cone removes one axis of the color space, so colors get projected onto the plane the eye can still see. Red and green do not vanish; they land on the same point on that plane, which is why they look identical.
If a color-blind person can still see something, why does the simulation matter?
They see the world, but they cannot separate colors that fall on their confusion line. The simulation shows exactly which of your color choices collapse, so you can add a second cue where it is needed.
Is greyscale the same as achromatopsia?
Effectively yes for design purposes. The achromatopsia output is a luminance-weighted greyscale, so if two elements differ only in hue and not brightness, they merge, which is the toughest test a color scheme can face.