Skip to main content
Participant
May 23, 2019
Answered

Illustrator color changes on export, how to stop this?

  • May 23, 2019
  • 7 replies
  • 97115 views

When I export a graphic from illustrator the color is changing.   I switch my color picker to web safe RGB and set the color to #311a92.   But when it exports and I use it in a webpage it is slightly lighter.  I sample the color using a browser color picker and it #362f8c.   I am using the #311a92 all through my CSS so I need to be able to to get illustrator to export that acutal color.  

Here is what I have tried...

- Using just a plain square.

- legacy and regular export

- setting "don't color manage my document" under assign profile

- different jpg and png types

All with the exact same result. 

What am I doing wrong? 

Correct answer Monika Gause

Do you "convert to sRGB profile" when using Save for web?

Does the browser perhaps use color management?

7 replies

bread_first
Participating Frequently
January 26, 2023

I came to this thread as I experienced the same issue exporting from Illustrator, then opening in Photoshop.

 

  • The artwork I was exporting contained a #00000 (RGB 0,0,0) graphic
  • My Illustrator doc colour profile: RGB
  • I was using the "export for screens > artboards" option
  • I exported as jpeg 100 (with "Embed ICC Profile" turned on and off)
  • When opening the jpeg in Photoshop, the black was visually not as black
  • Using the eyedropper tool, the black was reading #231f20 (RGB 35, 31, 32) 

 

It was only until I tried the "Export > Save for web (legacy)" option that the black was still RGB 0, 0, 0 when opened in Photoshop.

 

I have been using the "export for screens" option regularly for ages, but never checking the colours, so I am not sure if this is a recent glitch or if it's been shifting colours all along. I typically use this feature when creating and exporting visuals for on-screen presentations or online uploads. 

Monika Gause
Community Expert
Community Expert
January 26, 2023

Which color profile is attached to your AI file?

And how do you handle color profiles when exporting for screens?

bread_first
Participating Frequently
January 26, 2023

sharp_hands16B8
Community Expert
Community Expert
May 26, 2019

Make sure you're creating/editing in an RGB document in Illustrator.

Second, make sure the color profile for your RGB document settings is set to sRGB so you don't see it shift when it gets to your browser.

If the color you choose isn't a websafe color, even within sRGB, you will see small shifts in some colors. Especially in blues/purples like your sample value.

So in your new document settings, change it from CMYK to RGB.

Then when that document is open, go to Edit > Assign Profile, then choose the sRGB working profile.

Export from there and then test.

Ton Frederiks
Community Expert
Community Expert
May 26, 2019

mark-heaps  wrote

If the color you choose isn't a websafe color, even within sRGB, you will see small shifts in some colors. Especially in blues/purples like your sample value.

Mark,

that is interesting. I know that some colors are changing when saved as jpeg,

But I never saw a color shift when saving to a lossless format like png from an sRGB document.

Can you give an example?

Ton Frederiks
Community Expert
Community Expert
May 26, 2019

Don't trust  a Browser color picker. Check it in Photoshop.

Exporting as jpeg does not always give you the same color, use png.

Make sure your document color profile is set to sRGB. You can check it here:

Ares Hovhannesyan
Community Expert
Community Expert
May 26, 2019

I can suggest you to work with web colors swatches. You can find them in "Swatches" or "Color Guides" panel.

Also use Save for web (legacy) export, compare different file formats then preview image in browser. Save web have that feature.

Also take in consideration that some browsers can show different colors.

In addition there is CSS properties panel in Illustrator which can export that object appearance for CSS

Participant
May 8, 2025

Oh my gosh thank you. I chose Save for web and it is perfect! You saved me!

Omar.Fathy
Community Expert
Community Expert
May 25, 2019

Working with web should be RGB colors.
You may do everything right but different screens cause different colors because every screen has it's color profile.
To make sure that everything will be perfect, you should use the same color profile of the screen you will use.

mglush
Community Expert
Community Expert
May 25, 2019

Hi!

I tried to reproduce your color and issue to see what might be a good solution and I found that even though I typed in the hex color you noted above #311a92 and hit ok. When I went back into the Color Picker--it was already a different number -- 362f8a )even before I exposed it.

And, have you tried the Save for Screens Option? Here is a sample of the same color, viewed in Safari.

I've tried it a couple of times--everytime I type in your color number and then close the color picker box, when I use the eyedropper tool and sample the color it is not what I typed in it is 362f8a. I think the problem stems back to the Hex number.

How did you decide on your Hexadecimal color number?

Michelle

Ton Frederiks
Community Expert
Community Expert
May 25, 2019

Michelle, are you working with an RGB document?

mglush
Community Expert
Community Expert
May 26, 2019

Good question, and good catch! No--my color space was CMYK.

Monika Gause
Community Expert
Monika GauseCommunity ExpertCorrect answer
Community Expert
May 23, 2019

Do you "convert to sRGB profile" when using Save for web?

Does the browser perhaps use color management?

Participant
May 25, 2019

Is that the edit > edit colors > convert to RGB?   I did not try that before.  But I just tried that and that option is greyed out because it's already RGB. 

Thank you for the help thought!