When converting from Okhsva to Srgba using the clamped into_color with a color that has zero value, you get NaN for the Srgb components. I would expect this to return black. If the Okhsva value is even slightly non-zero it works as expected.
How To Reproduce
use palette::{IntoColor, Okhsva, Srgba};
let mut c: Okhsva = Srgba::new(255u8, 0, 0, 255).into_format().into_color();
c.value = 0.0;
let c2: Srgba<f32> = c.into_color();
println!("c2 {:?}", c3);
When converting from Okhsva to Srgba using the clamped into_color with a color that has zero value, you get NaN for the Srgb components. I would expect this to return black. If the Okhsva value is even slightly non-zero it works as expected.
How To Reproduce
Expected Outcome
c2 should represent black.
Actual Outcome
All components of c2 are NaN.
Additional Details
Using palette 0.7.1;