def _srgb(x: int) -> float:
    """
    Convert an integer to the sRGB color space.

    Parameters
    ----------
    x
        The integer to convert.

    Returns
    -------
    float
        The converted value.
    """

    x_frac = x / 255

    if x_frac <= 0.03928:
        x_frac = x_frac / 12.92
    else:
        x_frac = ((x_frac + 0.055) / 1.055) ** 2.4

    return x_frac

    Convert an integer to the sRGB color space.

    Parameters
    ----------
    x
        The integer to convert.

    Returns
    -------
    float
        The converted value.
    
great_tables/_data_color/base.py