Copy link to clipboard
Copied
Hi again Geeks, I'm having an issue with this script, that copy the CMYK values and does it fine but I tried to get the Hex Code in other text layer and it put an Hex Code but not accurately. See Picture attached
Hex Codes don't match, I just attached the script:
Copy link to clipboard
Copied
CMYK to hex probably wont be that useful. There are multiple ways to have, say, black (rich black has the other ink colors as well.) I'd probably make a temp copy, convert to RGB, and sample that temp file for the values.
Copy link to clipboard
Copied
I would argue that the Color Picker Hex display is incorrect in this representation of the colour values, as the document is CMYK. Notice how there are no radio buttons next to the CMYK fields.
Hex is a subset of RGB.
CMYK (via ICC PCS) > RGB > Hex
Copy link to clipboard
Copied
I just found a solution having other Script getting the HexCode without converting from CMYK. Just Straight from rgb as you tell. So I combined both scripts and use it as a buttom on Action Panel.
Copy link to clipboard
Copied
Not just straight from RGB, but straight from sRGB. That's how hex is normally used, by convention.
If hex numbers refer to, say, Adobe RGB, you'd get different hex codes for the same colors. This is color space specific. Which, BTW, also applies to CMYK.