def xyz_to_lab(c: float) -> float:
    """Converts XYZ to Lab

    :param c: (float) XYZ value
    :return: (float) Lab value
    """
    if c > 216.0 / 24389.0:
        return pow(c, 1.0 / 3.0)
    return c * (841.0 / 108.0) + (4.0 / 29.0)