when in hsl mode the s and l will be set to 50% is they are undefined, 0 or 100 cause you cant make out any colors with those sliders turning everything completely grey, black or white.
there is alot of Math.round, that is because we need the decimals to properly convert between color spaces but we dont want to output that.
This works!
Somethings to be aware of: