Explore CIE Lab gamut mapping in oklch

Explore a constant-lightness plane of CIE Lab (which includes out of gamut colors, and indeed imaginary colors), mapped to sRGB using (on the left) the proposed new CSS Color 4 GMA which operates in OKLCH with detaEOK and avoids un-needed deltaE calls.

In the middle, simple coordinate clipping (fast, but severe hue and lightness shifts).

Compared to (on the right) current color.js gamut mapping algorithm, which operates in CIE LCH with deltaE 2000. Exploring and mapping in the same space means the mapping space is evenly sampled.

Lightness: 50

OKLCH, ΔEOK Clip CIE LCH, ΔE2000