Contrast Tests

sRGB

white black 21
white white 1
#ffe white 1.010070
#afbaae white 2.008125
#8b9986 white 3.000644
#765 white 5.502984

Display P3

color(display-p3 0.555354 0.5982801 0.5316741) white 3.000644

LCH

lch(50% 0 0) white 4.4836

With NaN

lch(50% 0 NaN) white 4.4836