I'm using hex codes for specific colors in Illustrator v27.0. When I set the hex code for the color of an object, click away and then click back on the object, I find the hex code has changed to another number. The color stays more or less the same to my eye, so I'm not hugely concerned about that aside from issues of consistency across documents/sharing with other users. I would appreciate an answer if anyone has one, though!
When I go to export one specific document from .pdf or .ai to .jpg, however, one object (a grouping of outlined text) changes from a cream color (#F3ECE0) to gray. This object was doing this before I upgraded to v27.0, and it is continuing to do so now.
I'm working in CMYK, and my colors are #721924 ("Cranberry"), #F3ECE0 ("Cream"), #1D2049 ("Deep Plum") and #E78A1E ("Push Pop") - color names here were chosen by the designer.
Before Exporting (.pdf file):
After exporting to .jpg:
Any ideas? You can see the text below has not changed color, it's not outlined. None of the other objects have changed color completely though, so what gives?
<moved from using the community >
Copy link to clipboard
Hex codes are RGB colors. In a CMYK document they get converted to a possible CMYK equivalent and that CMYK color gets converted to the equivalent RGB color. Don't expect entering hex codes in a CMYK document to stay the same.
Use CMYK values in a CMYK document.
I had wondered if that was the issue, but wasn't familiar with the difference between hex codes for RGB and CMYK values.
As far as why the colour is changing on just that one block of type on your export to JPG, make sure there's no Transparency Effect of any sort applied to it. Also: even though you are working in CMYK, if your intention for the JPGs is for online use, make sure you selected RGB as the colour space on Export. CMYK JPGs can do weird things when used in other programs and browsers.
If you like, upload your pdf and your ai for us to poke at.