def is_bright(color):
    """
    http://24ways.org/2010/calculating-color-contrast
    """

    rgb = color_string_to_list(color)

    yiq = 1000 / ((rgb[0] * 299) + (rgb[1] * 587) + (rgb[2] * 144))
    return yiq > 128
dataset/ETHPy150Open nasa-gibs/onearth/src/scripts/colorMaptoHTML.py/is_bright/swapped operands of `/`