What the page simulates
Five buttons select a vision mode, and the page opens with Deuteranopia active, not Normal. For the three dichromacy modes each pixel's channels are gamma-decoded to linear light, multiplied by a fixed 3x3 matrix (Machado-style approximations whose rows sum to one, so grey stays grey), then re-encoded. Achromatopsia skips the matrix and applies Rec. 601 luma weights directly to the 8-bit values, and Normal is the untouched image. The loaded picture is previewed fitted inside 1200 by 1200 pixels; Download re-renders at the original size as a PNG named after the mode.
A worked example
The pair tester ships with red 220,38,38 against green 22,163,74. Simulated separations are 54 for normal vision, 21 for protanopia, 12 for deuteranopia, 70 for tritanopia and 7 for achromatopsia. Rows score under 12 as indistinguishable in red, under 30 as hard to tell apart, and above that clearly different, so green and red here land in the amber band while achromatopsia fails outright. The summary notices the worst dichromacy sits exactly at the cutoff and reports the pair as still separable under every simulated deficiency, but not comfortably.
How the separation score is computed
Both colours are run through the chosen simulation, their straight-line distance in 8-bit RGB is divided by 441.673 (the diagonal of the colour cube), and the result is rounded to a whole number from 0 to 100. Two colours that collapse to one value therefore score 0.
Where it stops
- It models full dichromacy; anomalous trichromacy, the milder and far more common condition, is outside the matrices.
- The matrices approximate; a plane-projection method handles gamut edges better but the page deliberately uses the simpler transform.
- Images larger than 12 MB are refused, and the on-screen preview is downscaled even though the download is not.
- The score compares pure colours; it cannot see adjacency, labels or lighting in a real layout.
Questions people ask
Does passing WCAG contrast settle this?
No; that is the point of the tool. Two colours can clear a contrast ratio and still merge into one value under a dichromatic simulation.
What should I change when a pair scores low?
Separate the meanings with something other than hue: an icon, a text label, a border weight, or a clear lightness gap.
Follow up with the contrast checker for luminance ratios and normalise the palette with the colour converter.