import colorsys


def rgb_to_hls(r, g, b):
    """Converts (red, green, blue) to a (hue, lightness, saturation) tuple.

    Args:
        r, g, b: the RGB values

    Returns:
        an H, L, S tuple
    """
    return colorsys.rgb_to_hls(r / 255.0, g / 255.0, b / 255.0)