How Does Physiological Color Blindness Simulation Work?
WCAG 2.2 Accessibility Tool • Grounded in Machado (2009) & ITU-R BT.709 — See Methodology
A color blindness simulator transforms standard sRGB pixels into linear RGB and multiplies them by physiologically derived 3×3 cone-projection matrices. Using GPU-accelerated SVG feColorMatrix filters, it previews how UI components, charts, and photos appear under Deuteranopia, Protanopia, Tritanopia, and Achromatopsia.
Many basic browser extensions apply naive gamma-encoded RGB channel averaging that misrepresents real-world color vision deficiency—especially Protan red-darkening and neutral gray preservation. ColorBlindLab executes simulation directly in linear light using SVG color-interpolation-filters="linearRGB" combined with Machado, Oliveira, and Fernandes (2009) 3×3 transformation matrices. Because gamma-encoded sRGB is first linearized by the browser compositor before applying the 3×3 matrix and re-encoded back to sRGB for display, photon-proportional luminance ratios stay accurate across gradients, bar charts, and photographs. For Achromatopsia (total cone absence), the filter applies ITU-R BT.709 perceptual luminance weights (0.2126 R + 0.7152 G + 0.0722 B) so designers can verify WCAG 2.2 luminance contrast independently of hue. Designers can audit screenshots at 100% severity for complete dichromacy (~2% of men) or slide down to 50–60% for anomalous trichromacy (~6% of men).
What Colorblind-Safe Palette Should Designers Use? (Okabe–Ito Standard)
When designing dashboards, scientific figures, or mobile apps, replacing default red/green/blue palettes with high-contrast, hue-separated alternatives eliminates ambiguity across Protan, Deutan, and Tritan vision:
| Role | Avoid (Problematic) | Use Instead (Safe Hex) | Why It Works |
|---|---|---|---|
| Positive / Primary | Pure Green (#22C55E) | Sky Blue #56B4E9 / #0072B2 | Blue remains distinct from orange/vermilion for Protan and Deutan eyes |
| Negative / Alert | Pure Red (#EF4444) | Vermilion #D55E00 | Higher luminance than deep red, preventing Protan red-darkening |
| Warning / Highlight | Light Green / Yellow | Orange #E69F00 | Separates cleanly from pale yellow and bluish-green |
| Secondary Category | Blue + Purple | Reddish Purple #CC79A7 | Paired with shape/line style, stays distinct from #0072B2 |
Inside the Linear-RGB Simulation Pipeline
| Stage | Mathematical Transform | Why It Matters |
|---|---|---|
| 1. Linearization | color-interpolation-filters="linearRGB" | Browser compositor linearizes sRGB (γ ≈ 2.4) before matrix multiplication |
| 2. Severity Interpolation | (1 − s) · I + s · M_machado | Blends smoothly between normal trichromacy (0%) and full dichromacy (100%) |
| 3. Confusion Projection | Machado (2009) / BT.709 3×3 Matrix | Projects missing cone channels in linear light and applies BT.709 weights for Achromatopsia |
| 4. Display Output | Linear RGB → sRGB Compositor | Preserves true Protan red-darkening and neutral gray balance on screen |
Real-World UI & Data Visualization Failure Cases (And Fixes)
| UI / Chart Component | Why It Fails in Simulation | Production CSS / SVG Fix |
|---|---|---|
| Form Validation States | 1px #EF4444 error vs. #22C55E success borders collapse to identical olive-brown under Deuteranopia. | Pair border color with inline status icons, explicit text messages (aria-describedby), and 2px border weight contrast. |
| Dark-Mode Red Alerts | Deep crimson text (#B91C1C) on #1A1A1A suffers Protan long-wavelength darkening and drops below 3:1 contrast. | Shift dark-mode alert tones toward higher-luminance coral (#F87171) or vermilion (#FB923C) to preserve ≥4.5:1 luminance. |
| Red–Yellow–Green Heatmaps | Diverging red-green scales flatten at both ends into murky yellow-tan, hiding extreme risk clusters in dashboards. | Replace with perceptually uniform, colorblind-safe ramps (Viridis, Cividis, or blue-to-orange) plus numeric cell tooltips. |
| Multi-Series Line & Bar Charts | Thin 2px series in teal, green, and blue merge in Tritanopia; adjacent bars blur without legend hover. | Apply SVG stroke-dasharray patterns, distinct point markers (circle, square, triangle), and SVG <pattern> bar hatching. |
Looking to screen your own vision instead of auditing a design? Try our 90-second all-cone screener, 14-plate red-green diagnostic, S-cone blue-yellow check, or kids shape screener.