Checking a design for colour blindness, and how the simulation works
Most people see colour with three kinds of cone cell in the eye, tuned to long, medium and short wavelengths, roughly red, green and blue. Colour blindness is when one kind is missing or shifted. About 1 in 12 men and 1 in 200 women of Northern European descent have a red-green type. That is a large share of the visitors to any website, which is why accessibility guidelines say colour should never be the only way information is shown.
There are four types this tool shows. Protanopia is the loss of the red-sensing cones; reds look dark and are easily confused with greens. Deuteranopia is the loss of the green-sensing cones; red and green also merge, but reds keep more of their brightness. Tritanopia, the loss of the blue-sensing cones, is rare and confuses blue with green and yellow with pink. Achromatopsia, with no working cones at all, is very rare and leaves only brightness.
A worked example shows why the check matters. A typical "error" red, 230, 57, 70, and a typical "success" green, 46, 160, 67, look nothing alike to most people. Simulated for deuteranopia, they become 152, 137, 64 and 149, 136, 74: two almost identical olive browns. A status dashboard that uses only those two colours tells a deuteranope nothing. Adding an icon, a word, or a clear difference in brightness fixes it.
The simulation uses the matrices published by Machado, Oliveira and Fernandes in 2009, which come from a model of how the cone signals combine, at full severity. They are applied in linear light: each sRGB value is first decoded to the amount of light it stands for, the matrix is applied, and the result is encoded back. That step matters. Applied to the stored numbers instead, the same matrix turns pure red into a near-black 39, 29, 0 for a protanope, where the correct result is a dark olive, 109, 95, 0. Achromatopsia is the relative luminance of the light, shown as grey.
The limits are important. This shows the full form of each type, and the milder forms (protanomaly, deuteranomaly and tritanomaly), which are far more common, fall somewhere between the simulation and the original. No model matches every person. A screenshot shows only one state of a design, so hover colours, focus rings and animations need their own screenshots. The tool checks colour, not contrast; for text contrast use the Contrast Checker. The largest image it takes is 24 megapixels.