Relative Content

Tag Archive for javargbcmykcolor-profilecolor-management

Using ICC profile for color conversion in java gives wrong CMYK values for RGB 128,128,128 (gray), why does this happen

I’m trying to create java code for converting RGB to CMYK, CMYK to RGB and CMYK to CMYK values based on input and output icc profiles.
Converting a given value from RGB to CMYK and using the outcome for a vice versa conversion does not return the first given value. I know that this is the case with icc conversion, because RGB values are converted using a RGB to CIEXYZ table. The corresponding CIEXYZ values are looked up in another table that contains CIEXYZ to CMYK values. It is possible that there are no exact values so an approximate value is chosen (based on the rendering intent like perceptual or relative).