Color Modify
You get the color with one attribute set to a new value. The attributes are red, green and blue (0 to 255), alpha (0 to 1), hue (0 to 360), saturation and lightness (0 to 100). 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
{{ '#7ab55c' | color_modify: 'red', 255 }}
{{ '#7ab55c' | color_modify: 'alpha', 0.85 }}Output
html
#ffb55c
rgba(122, 181, 92, 0.85)