def hex_to_rgb(value):
    """
    converts a hex value to an rbg tuple.
    >>>hex_to_rgb('#FFFFFF')
    (255, 255, 255)
    """
    value = value.lstrip('#')
    return tuple(int(value[i:i+2], 16) for i in range(0, 6, 2))