Labs
Jersey Color-Contrast & Kit Clash Checker
From the Nov 24 note (41ed6e), rebuilt in lab style. Pick both teams' colors; the checker computes WCAG relative luminance and contrast ratios for the pairings officials actually judge — shirt vs shirt, and each shirt against the other team's shorts — then re-checks the shirts under a deuteranopia (red-green color-blindness) simulation. The luminance maths is the WCAG 2.x formula: channel c′ = c/12.92 if c ≤ 0.03928, else ((c+0.055)/1.055)2.4; L = 0.2126R + 0.7152G + 0.0722B; ratio = (Llight+0.05)/(Ldark+0.05).
Back to all labs.