Color Blindness Simulator
Professional accessibility auditing tool simulating Protanopia, Deuteranopia, and Tritanopia with real-time camera AR, Daltonization correction engines, and SVG-powered spectral analysis.
About
This tool is a rigorous Chromatopsia Auditing Engine designed for UI/UX engineers and accessibility specialists. It simulates how visual signals are processed by the human eye under various photopigment deficiencies, ensuring compliance with WCAG 2.1 standards (Distinguishable Content). Unlike simple overlay tools, this application utilizes GPU-accelerated SVG Convolution Matrices to transform linear RGB signals into perceived colors for 8 distinct ocular conditions.
Inaccessibility in color design leads to critical usability failures, particularly in data visualization and alert systems. For example, Protanopia (missing L-cones) causes red traffic signals to appear indistinguishable from streetlights. This simulator enables real-time verification via webcam and offers Daltonization algorithms - mathematically shifting confusing hues into the visible spectrum of the observer to restore information density.
Formulas
The simulation relies on mapping the standard sRGB color space to the LMS Color Space (Long, Medium, Short cone responses). A transformation matrix T is applied to the RGB vector v.
For Protanopia (Simulated), the transformation removes the L-cone contribution and projects it onto the remaining M and S axes:
Daltonization (Correction) involves calculating the error vector E between the original and simulated image, then shifting this error into a visible spectrum (e.g., shifting red information to blue luminance):
Cfinal = Corig + (Shift × (Corig − Csim))
Reference Data
| Condition | Defect Type | Affected Cones | Population (Male/Female) | Confusion Lines |
|---|---|---|---|---|
| Protanopia | Dichromacy | L-Cone (Long/Red) Missing | ~1.0% / 0.02% | Red, Orange, Yellow, Green appear as similar shades of yellow/blue. |
| Deuteranopia | Dichromacy | M-Cone (Medium/Green) Missing | ~1.0% / 0.01% | Red, Orange, Yellow, Green appear as similar shades of yellow/blue. |
| Tritanopia | Dichromacy | S-Cone (Short/Blue) Missing | ~0.003% (Rare) | Blue and Green appear indistinguishable; Yellow and Violet blend. |
| Protanomaly | Anomalous Trichromacy | L-Cone Mutated (Weak Red) | ~1.0% / 0.03% | Reduced saturation of red; reduced ability to discriminate red/green. |
| Deuteranomaly | Anomalous Trichromacy | M-Cone Mutated (Weak Green) | ~5.0% / 0.35% | Mildest but most common; distinct from Deuteranopia but similar shifts. |
| Tritanomaly | Anomalous Trichromacy | S-Cone Mutated (Weak Blue) | Rare | Reduced saturation of blue; difficult to distinguish blue/green. |
| Achromatopsia | Monochromacy | No functional cones | 1 in 30,000 | Complete lack of hue; vision is purely varying levels of luminosity. |
| Blue Cone Monochromacy | Monochromacy | No L or M cones | 1 in 100,000 | Can only see Blue and white/black/gray. Severe visual acuity loss. |