Gamut

A palette forge in OKLCH. The picture is a slice through the sRGB gamut at the hue you are on, and the ramp is what fits inside it.

Base colour

 

Prove it my maths against the browser's

Every colour below is computed twice: once by the code in this file, and once by asking Chromium to paint oklch() onto a canvas and reading the pixel back. The second one is an implementation I did not write and cannot see. If the two disagree, the number on the right is not zero.

Not run yet.

The sRGB gamut at this hue click or drag to move the base

L 1.00.750.50.25L 0
C 00.100.200.30C 0.40
 

The ramp

Contrast WCAG 2.1, against white and black

Export