Skip to main content

color_extract

string | color_extract: string
returns number

Extracts a specific color component from a given color.

Accepts the following color components:

  • alpha
  • red
  • green
  • blue
  • hue
  • saturation
  • lightness
{{ '#EA5AB9' | color_extract: 'red' }}

Output

234
Was this page helpful?