You get the value of one attribute of a color. The attributes are red, green and blue (0 to 255), alpha (0 to 1), hue (0 to 360), saturation and lightness (0 to 100).
red
green
blue
alpha
hue
saturation
lightness
{{ '#7ab55c' | color_extract: 'red' }}
Output
122