def calculate_luminance(srgb_value: float) -> float:
    """Converts gamma-compressed (sRGB) values into gamma-expanded (linear)."""
    if srgb_value < 0.03928:
        return srgb_value / 12.92
    return ((srgb_value + 0.055) / 1.055) ** 2.4