Skip to content

Color To Hex ​

Last updated View as Markdown

You get a color as a hex string. The transparency is left out.

Example ​

liquid
{{ 'rgb(122, 181, 92)' | color_to_hex }}

Output

html
#7ab55c