def is_foreground_light(color):
 return (rgb_to_hsl(*parse_color(color)[:3])[2] < 17.9)

def is_foreground_light ( color ) : return ( rgb_to_hsl ( * parse_color ( color ) [ : 3 ] ) [ 2 ] < 17.9 )
determine if the background color need a light or dark foreground color .