def normalize_rgb_values(color: tuple) -> tuple:
    """
    Clean-up any slight color differences in PIL sampling.

    :param color: a tuple of RGB color values eg. (255, 255, 255)
    :returns: a tuple of RGB color values
    """
    return tuple([0 if val <= 3 else 255 if val >= 253 else val for val in color])