by Freak_NL · 9y ago · 0 comments
HSL has the benefit of explicitly showing the colour's hue, saturation, and lightness — meaningful values compared with RGB's three colour channels, which is something you might want to stimulate with a tool like this.
With HSL a minor change in saturation or lightness can also be done directly from the CSS (or SASS) code by whoever is maintaining the stylesheet.
# Green.
hsl(130, 41%, 33%)
rgb(50, 119, 62)
# Slightly more vibrant green — note that only the saturation value changes.
hsl(130, 53%, 33%)
rgb(39, 130, 55)And that's the reason I love your suggestion. With some browser support reassurances to the user (HSL is safe to use!), a neat tool like this outputting HSL could help the HSL adoption rate. HSL is pretty nice to work with, so I'd love to see more of it.