Chroma value varies for different hues, and I want to understand how I can find the maximum value that is displayable for the given hue and lightness programmatically.
I saw a couple of color pickers that can limit the selection visually, but I don't have access to their code, but anyway, I think it should be possible somehow.
It's not an elegant solution but if you can convert from
Oklch
to anRGB
space, you can increment the chroma until the conversion results in an RGB that contains a value outside of the 0-1 range.For example, with my Unicolour library I can do this in C#: