docs: def kelvin_to_rgb(kelvin):
      """
      Convert a color temperature given in kelvin to an approximate RGB value.
  
      :param kelvin: Color temp in K
      :return: Tuple of (r, g, b), equivalent color for the temperature
      """
      temp = kelvin / 100.0
  
      # Calculate Red:
      if temp <= 66:
          red = 255
      else:
          red = 329.698727446 * ((temp - 60) ** -0.1332047592)
  
      # Calculate Green:
  
      if temp <= 66:
          green = 99.4708025861 * math.log(temp) - 161.1195681661
      else:
          green = 288.1221695283 * ((temp - 60) ** -0.0755148492)
  
      #Calculate Blue:
      if temp > 66:
          blue = 255
      elif temp <= 19:
          blue = 0
      else:
          blue = 138.5177312231 * math.log(temp - 10) - 305.0447927307
  
      return tuple(correct_output(c) for c in (red, green, blue))