You get the perceived brightness of a hex color or a color object, from 0 (black) to 255 (white).
0
255
{{ '#7ab55c' | color_brightness }}
Output
153.213