WCAG Contrast Ratio Lab
Interactive 3D simulator of the WCAG 2.x contrast-ratio formula: move a foreground and background color through RGB space and watch relative luminance, contrast ratio and AA/AAA pass/fail update live against the real accessibility thresholds.
Every "sufficient contrast" rule in the WCAG accessibility guidelines — the ones behind the 4.5:1 minimum quoted in every mobile-accessibility checklist — reduces to one formula: relative luminance, gamma-corrected per channel, folded into a ratio. This simulator renders the sRGB color cube in 3D, drops a marker for your chosen foreground and background color at their true RGB coordinates, and projects both onto a live luminance scale. Move either color's hue and lightness and watch the relative luminance, the contrast ratio, and the pass/fail state for AA and AAA (normal and large text) update in real time against the actual WCAG thresholds — including the counter-intuitive cases where two visually distinct hues land on almost the same luminance and fail contrast anyway.
Interactive 3D simulator of the WCAG 2.x contrast-ratio formula: move a foreground and background color through sRGB space and watch relative luminance, contrast ratio and AA/AAA pass/fail update live against the real accessibility thresholds.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install