def RGBToHTMLColor(rgb):
    """
    Convert an [R, G, B] list to #RRGGBB.
    :param: rgb - The elements of the array rgb are unsigned chars (0..255).
    :return: The html color.
    """
    hexcolor = "#" + ''.join(['{:02x}'.format(x) for x in rgb])
    return hexcolor