jxnblk / colorable

Color combination contrast tester
https://colorable.jxnblk.com
2.01k stars 129 forks source link

Wrong threshold #34

Open gmcusaro opened 3 years ago

gmcusaro commented 3 years ago

The relative luminance definition as listed in the WCAG 2.x specification is known to be incorrect and not per the official IEC standard for sRGB.

Specifically, the correct threshold for the piecewise equation is 0.04045 and not the 0.03928: https://www.w3.org/WAI/GL/wiki/Relative_luminance

Here every value is wrong 😵