def rgbww_to_color_temperature(
    rgbww: tuple[int, int, int, int, int],
    min_kelvin: int,
    max_kelvin: int,
) -> tuple[int, int]:
    """Convert rgbcw to color temperature in kelvin.

    Returns a tuple (color_temperature, brightness).
    """
    _, _, _, cold, warm = rgbww
    return _white_levels_to_color_temperature(cold, warm, min_kelvin, max_kelvin)
Convert rgbcw to color temperature in kelvin.

    Returns a tuple (color_temperature, brightness).
    
webapp/homeassistant_util_color.py