*** From the Archives ***

This article is from September 19, 2006, and is no longer current.

Tips for Managing Web Color in Photoshop

You spend hours in Photoshop creating the perfect background image (or button, or photograph) for a client’s web site. From the native .psd file, which you were careful to keep in RGB mode, you use Save for Web (from the File menu) to create a .jpeg, .gif or .png version of it.

But when you view your saved-for-web artwork in a browser, ack! A significant color shift washed out the intensity of your colors and reduced the contrast overall. But when you open that .gif or .jpeg or .png in Photoshop, the colors shift back to what the original .psd file looked like. Dang!

Sound familiar? If you’ve driven yourself crazy trying to figure out what’s going on here, this story’s for you.

What’s Going On Here

The most common cause is that you’re using Photoshop in a way that’s meant for print work, not web work. You’re probably using Photoshop for both, right? And figured, since all web artwork is RGB, as long as you keep the Photoshop file as an RGB image, what you see in Photoshop will be what you get when you open the RGB image in a browser.

But there are actually two types of RGB you can use in Photoshop. The one for print is called “Adobe RGB (1998)” and is what you’re using if your Color Settings (in the Edit menu) are using any Presets with “Prepress” in the title. Look at the first dropdown menu called RGB Working Space and you’ll see that Adobe RGB (1998) is active.

The other type of RGB is called “sRGB [bunch of numbers here]” and is the default color space of every web browser known to mankind. If your Color Settings are using a Preset with “Internet” in the title, that’s what your Working Space RGB is set to — sRGB. But if it was, then you wouldn’t be reading this article.

The key here is that when you choose Save for Web, Photoshop automatically converts your image to sRGB. Or to put it more accurately perhaps, it’s stripping the Adobe RGB (1998) profile attached to the image, since GIFs and PNGs don’t support profiles.

Browsers ignore profiles too and assume every image is in sRGB, which is what Save for Web is showing you. (JPEGs can optionally embed a color profile, but only Safari recognizes them. If you want a JPEG with an Adobe RGB profile, you have to use Save As, not Save for Web. And hope all your site visitors are using Safari.)

You can see the sRGB color shift happen right there in the Save for Web dialog box, but it’s easy to fool yourself into thinking it’s just a “crappy preview in a dialog box” thing. Nope, it’s actually showing you the image as it will be seen in a browser, without a profile, a naked sRGB image. You can click the little globe icon at the bottom of the dialog box to open a preview of the artwork in a real browser and confirm it.

So why, when you open that sRGB web artwork in Photoshop, does the image look almost exactly like the original PSD file — no color shift? Probably because Photoshop defaults to assigning your current RGB Working Space — Adobe RGB (1998) — to images with a different or missing profile while you have it open. This can happen without you even being aware of it if you’ve turned off the “Missing Profiles: Ask When Opening” option in your Color Settings.


How to See What You’ll Get

There are two parts to achieving a “no surprises” Photoshop-to-web-image workflow.

First, pre-empt Save for Web’s color shenanigans by converting your image to sRGB before it gets there. If you change Photoshop’s color management settings (Edit > Color Settings) to the Web/Internet preset, or just choose sRGB as your RGB Working Space, all new files you create will use sRGB from the start. It’s a good habit to get into before sitting down to a web graphics session in Photoshop. (Don’t forget to switch back to a print-centric preset, or switch back to Adobe RGB, when you’re done.)

The new color settings will not affect existing images with embedded Adobe RGB profiles. To change an existing image, open it and then go to Edit > Convert to Profile (not Assign to Profile). Choose sRGB for the image’s Destination Space and click OK. If you open the Convert to Profile dialog box again, you’ll see that both the Source and the Destination spaces have changed to sRGB.

The best part about converting to sRGB in the main program (instead of letting Save for Web do it for you) is that the colors are actually mapped to the new color space while maintaining the existing colors as much as possible. It’s often difficult to detect any significant color shift at all in the move from Adobe RGB to sRGB. But they are most definitely sRGB, so when you use Save for Web, the colors are maintained, within the limits of the file format you choose.

The second task of the no-surprises workflow is especially important for Mac designers. You probably know that monitor settings in Windows have a higher gamma (2.2) than Macs (1.8) … and if you don’t know nothin’ ’bout gamma numbers, Miz Scarlett, just know that all monitor colors are darker on Windows. Since web images are viewed on a monitor, all your web images will appear significantly darker to the vast majority (like, 90%) of people viewing the web site on a PC than they do on your Mac.

It’s surprisingly easy to set up Photoshop on either platform so that images appear as they would in the other’s browser. If you’re on a Mac, first go to the View > Proof Setup fly-out menu and choose Windows RGB. Second, press Command-Y (Ctrl-Y on a PC). Third … there is no third. Command/Ctrl-Y toggles View > Proof Colors on and off. When it’s on, the image in Photoshop looks just as it would in a PC browser.

And of course if you’re a PC-based web designer and you want to see how something will look to a Mac user, set the Proof Setup fly-out menu to Macintosh RGB before turning on Proof Colors.


Web Features in the Info Palette

You may already know that if you choose Palette Options from Photoshop’s Info palette menu, you can choose two color readouts that the Info palette dynamically updates as you move your cursor around the image.

Savvy print designers like to set the first color readout to RGB (because they’re working in RGB, the most flexible color space) and the second color readout to CMYK, because when they’re done with the image they’ll be converting it to CMYK from the Image > Mode menu. So as they work on the RGB image they can get an inkling of how various areas will translate to CMYK mixes without actually converting it.

If you’re creating an image for an existing web site and you have to match colors there — which are usually supplied to you in Hex code, like C6C6C6 — you might want to choose Web Color as your second readout in the palette. Web color shows you the Hex code for RGB colors in the right side of the palette. That way you can hover over any part of your image and confirm that it’s the exact color you want to match.

More web-friendly goodies are hiding in the Info Palette Options dialog box. When I’m working on a web project in Photoshop, I like to change the Mouse Coordinates to Pixels — it’s all about the pixels, baby. And in Status Information, I turn on Document Profile (you know why) and Document Dimensions, which saves me from having to obsessively check Image > Image Size to assure myself yes, I specced my file correctly to so the button I’m working is exactly the size I need.

Anne-Marie “Her Geekness” Concepción is the co-founder (with David Blatner) and CEO of Creative Publishing Network, which produces InDesignSecrets, InDesign Magazine, and other resources for creative professionals. Through her cross-media design studio, Seneca Design & Training, Anne-Marie develops ebooks and trains and consults with companies who want to master the tools and workflows of digital publishing. She has authored over 20 courses on lynda.com on these topics and others. Keep up with Anne-Marie by subscribing to her ezine, HerGeekness Gazette, and contact her by email at [email protected] or on Twitter @amarie
  • anonymous says:

    This article was a pleasure to read and I learned alot in a short period of time! Good job!

  • anonymous says:

    This was certainly the easiest to understand explanation of Colour Space in Photoshop I have ever read. And I really appreciated the tip about setting Document Size to show in the status bar. I, too, was constantly checking Image -> Image Size, but no more. Thank you.

  • anonymous says:

    I thought this article was very informative and helpful. However, after implementing everything suggested, the originally defined problem is not fixed comletely. At least not on the Mac. I created a brand new image with the sRGB IEC61966-2.1 profile. If use save for web – the JPG looks dramatically different than if save the JPG with the sRGB profile – at least in preview and Safari. So in Safari is is displaying an JPEG with the sRGB IEC61966-2.1 profile differently than a JPG with no profile. In Firefox they look the same.

    I also exported PNGs. One with the “save as” commad and one with the “save for web”. The interesting thing is the the save for web PNG I made is different even in Firefox from the way the other images look. So the save for web PNG looks different than the save for web JPG, or the profile JPG, or the PNG made by using Photoshops save as command.

    The BIG disappointment is that the way Adobe displays the sRGB image in Photoshop is by default dramatically different than what the save for web version looks like in Safari and in Firefox. This is also true for either the Macintosh RGB or the Windows RGB Proof mode. However, if I switch to the Monitor RGB then I can see a pretty close approximation of the how the final exported save for web graphic will look on this same computer.

    Where my NEW frustration is coming in over this is the crazyness that Adobe is now potentially adding to the mix with Flash. It seems Flash 8 may be supporting color profiles which will make it easy to have graphics end up not matching when they are embeded in Flash vs. being displayed by the browser. I really don’t know how big of an issue this will be, and I am not 100% sure it is true yet. But if it is, this may be good material for another article.

  • anonymous says:

    For the most part I found this an interesting and accurate article. However, one of the changes to CS3 I’ve been begging for is the autonatic conversion of any working space to sRGB when “saving for web”.

    Anyone can try the following: I opened an AdobeRGB image and immediately saved it via “save for web”. I then opened this ‘converted’ jpeg and it appeared desaturated next to the original. Since the new file was not tagged with any color space, I opened the “assign color space” dialog (with preview enabled) and tried sRGB and AdobeRGB. AdobeRGB was the color space that matched the original, so I can only assume no color space conversion took place during “save for web” (as your article implies).

    BTW … another peev of mine is that “save for web” also strips the metadata. I can understand this when one would like to make the file a small a possible. However, sometimes you want the copyright and other info maintained, and one wishes there was a preference somewhere. As a result I never use “save for web”, rather I understand what I need to do (and want) and use “save as” instead.

    genuinely, michael shaffer :o)
    Avalon Peninsula, Newfoundland

  • Anonymous says:

    Thanks for clearing that up… what a mess I had gotten into LOL
    HS

  • Anonymous says:

    hi, thanks great article, just a little suggestion, please create a step by step tutorial or something for a really easy understanding of how work like a pro for web.

  • Anonymous says:

    Great tutorial. Would apply to my Michigan website design pages.

  • Anonymous says:

    So what should I set all the “profile mismatches” checkboxes to? I’ve changed something and now I get lots of warnings when I open a JPEG that I never used to get before.

  • Anonymous says:

    awesome to find this out thanks

  • Anonymous says:

    quick question: if I have the proof colors turned on and edit accordingly, will my prints (submitted via the web) to a print lab match up to what i see?
    thanks,
    Jason

  • Anonymous says:

    This has saved me from such a headache. I’ve been trying to figure out how to set up my illustrations for the web properly for a long time with no success. Thank you again for putting up this detailed and amazing article.

  • Anonymous says:

    Thanks for your article! I searched for this issue, and found many sites with responses, bit this was the most complete, detailed, and easy to understand. No more color shifts for me.

  • Anonymous says:

    Thank you so much for posting this. I was having a hell of a time trying to figure out why I was in Adobe RGB and this article helped me fix it back to sRGB.

  • >