Skip to content

Color To Hsl ​

Last updated View as Markdown

You get a color as an hsl() string. A color with transparency is printed as hsla().

Example ​

liquid
{{ '#7ab55c' | color_to_hsl }}

Output

html
hsl(100, 38%, 54%)