When applying a hsl color in JavaScript, it ends up being converted to RGB instead of staying as an HSL color.
document.body.style.backgroundColor = "hsl(0,100%,50%)"
document.body.style.backgroundColor; // "rgb(255, 0, 0)"
I wanted to set an HSL color and then adjust the saturation and brightness later on, but it's challenging since it switches to RGB format.
Is there any way to prevent the conversion to RGB, or do I need to manually convert it back to HSL?