Assign and convert a color profile
One fictional product swatch, rendered through a fixed sRGB comparison view. The sample values come from a measured LittleCMS conversion.
Download the Python example to generate the three tagged PNG files with Pillow and your local ICC profiles.
Original sRGB
Stored RGB (45, 116, 170)sRGB preview (45, 116, 170)
Assigned Display P3
Stored RGB (45, 116, 170)sRGB preview (0, 118, 175)
Converted to Display P3
Stored RGB (65, 114, 166)sRGB preview (46, 116, 170)