How it works
Reading a colour
Type #rgb, #rrggbb, rgb() or hsl() and the other forms update. HSL describes a colour as hue, saturation and lightness, which is the easiest to adjust by hand.
The contrast check
Contrast is the ratio of the lighter colour’s relative luminance to the darker one’s, from 1 to 21. WCAG 2.2 asks for 4.5 for normal text at level AA and 7 at AAA, 3 for large text and for UI components, and 4.5 for large text at AAA.
ratio = (L₁ + 0.05) ÷ (L₂ + 0.05)





