Color management with ICC profiles
Color management with ICC profiles
You may want to look at ICC profiles. Every image is expressed in a given colorspace, and in a perfect world every image has an embedded ICC profile that describes its colorspace.
Simply speaking: when you say a color in...