Enter the foreground, background, and final opaque base color; additional opacity is multiplied by the foreground alpha. After analysis, view the unrounded WCAG matrix, accessible candidates, and 5/7/9 level swatches before copying CSS/JSON or downloading. The result is color accessibility information and does not equate to full accessibility compliance.
Repeatable example
Default #111111 text on a white background has a contrast ratio of approximately 18.88:1. 50% transparent black on white has a continuous channel contrast of approximately 3.98:1; the tool calculates this value before quantizing the display.
Methods and principles
Press CSS source-over to compose on gamma-encoded sRGB channels, then press WCAG 2.2 to linearize the final opaque color and calculate relative brightness. The candidate is sampled 257 points on each side of the OKLCH brightness, all PASS/FAIL boundaries are refined 24 times, and finally the actual composite ratio is reviewed. Color palettes are sampled equidistantly from L=0.97 to 0.20 and mapped to sRGB.