Skip to content

Color Mix ​

Last updated View as Markdown

You get a mix of two colors. The weight, from 0 to 100, is the share of the first color. The default weight is 50. With a color object, you get a color object. With a hex string, you get a string. A string with transparency is printed as rgba(). A color object with transparency is printed as an 8-digit hex value.

Example ​

liquid
{{ '#E800B0' | color_mix: '#00936F', 50 }}

Output

html
#744a90