The saturation calulation for RGB to HSL has a small bug.
On line HslAndRgbConverter.cs#L99
|
s = chroma / (2F - chroma); |
the calculation should be
s = chroma / (2F - max - min);
(Looks like an optimization mistake: chroma=max-min, but 2F-max-min is not 2F-chroma)