def rgb_to_hex(color):

    rgb = color_string_to_list(color)

    return '#%02x%02x%02x' % (rgb[0], rgb[1], rgb[2])
dataset/ETHPy150Open nasa-gibs/onearth/src/scripts/colorMaptoHTML.py/rgb_to_hex/original