def _hex_to_float(color):
    """Convert hex value to tuple of type float with values between 0.0 and 1.0
    """
    a = color.lstrip('#')
    return tuple(int(a[i:i+2], 16)/255.0 for i in (0, 2, 4, 6))