https://en.wikipedia.org/wiki/SRGB
https://bottosson.github.io/posts/oklab/
https://bottosson.github.io/posts/oklab/ - inverse of oklab_to_linear_rgb
https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB
Polynomial approximation for mid-gamut ST values. Derived by optimization to ensure S_mid < S_max and T_mid < T_max.
Approximate max saturation using a polynomial, then refine with 1 step of Halley’s method. a and b must be normalized (a^2 + b^2 == 1).
Find intersection of the gamut boundary with the line from (L0, 0) to (L1, C1). Uses 1 step of Halley’s method.
Returns C_0, C_mid, Cmax for a given Oklab L and hue direction (a, b_).
https://en.wikipedia.org/wiki/SRGB