Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Why do Chrome and Firefox show heavily desaturated colors compared to Safari on OS X Mavericks?

Hello,


I've got a serious color problem on my Macbook Air. I am not 100% sure whether it existed before upgrading to Mavericks, but I doubt it.


The colors on websites and images in Chrome and Firefox are heavily desaturated compared to viewing them in Safari. The colors seem totally washed out, though appear to be more detailed. I thought this could be an issue with color management tags on images, so I did a very simple test:


I created a test.html with a rectangular div and filled the background with just #C73333 (a vibrant red). The result: Both, Chrome and Firefox extremely desaturate the color, while in Safari it is pretty vibrant.


I've also tested it on an iMac, which doesn't show this behavior, even though it is set up similarly. On the iMac the red rectangular (and websites as well as images) look pretty much the same on Chrome and Safari, there is no huge difference to see. The result is much more like my example in Safari, so I believe that Chrome and Firefox must be broken, which seems pretty much impossible as I've just installed Firefox in order to test this.


Below you can see a picture of my test.html. On the left is Chrome, followed by Safari in the middle and Firefox on the right.


User uploaded file

I'll show you something else. The following is a picture from the exact same website of the exact same image. The left was taken in Chrome, the right on Safari:


User uploaded file


Do you have the same problem? Or, preferably 🙂, are you aware of any fix? Maybe there's a problem with Chrome and Firefox accessing the color management profiles or something like that.


Thanks in advance for your help and time. I'd be glad for any hint.



Best regards


Alexander

MacBook Air (13-inch Mid 2011), OS X Mavericks (10.9.2)

Posted on Apr 19, 2014 12:32 PM

Reply
Question marked as Best reply

Posted on Apr 19, 2014 12:58 PM

Color space is the biggest issue here. Any value you enter as a color is relative to that color space's gamut and range in relation to where that value falls in L*A*B*. So C73333 does not produce the same hue in different color spaces.


As an example, I took your values and made a small image filled with that color. I used my monitor's profile as the color space (it's larger than Adobe RGB in some hues, a bit short of it in others). I then converted the file to the sRGB color space and filled it with the exact same color. Adobe RGB and my monitor profile both produce that hue as a much richer and vibrant red because of where that value falls relative to 255, 0, 0 (the most saturated possible red) as RGB values. In sRGB, 255, 0, 0 is nowhere near as saturated since it's a much smaller space, so C73333 also falls to a much more desaturated color to maintain its position between 255, 0, 0 and 0, 0, 0. It has to since the richer red of my monitor is outside of sRGB's space.


Here's how it looks to me. My monitor profile on the left, and the exact same value of C73333 when applied as sRGB.


User uploaded file


So what's basically happening is that Chrome and Firefox are ignoring any embedded profiles of the images on a web page, if they have one, and displaying them as sRGB. In the case of images saved without a profile, they (and also Safari) default to applying sRGB on the fly. Which results in a duller color range than what your monitor may actually be capable of reproducing.


Safari then is the only one of the three attempting to display tagged images according to their embedded profiles rather than everything as sRGB. Chrome and Firefox are not.


Hope that makes sense.

8 replies
Question marked as Best reply

Apr 19, 2014 12:58 PM in response to ahlex86

Color space is the biggest issue here. Any value you enter as a color is relative to that color space's gamut and range in relation to where that value falls in L*A*B*. So C73333 does not produce the same hue in different color spaces.


As an example, I took your values and made a small image filled with that color. I used my monitor's profile as the color space (it's larger than Adobe RGB in some hues, a bit short of it in others). I then converted the file to the sRGB color space and filled it with the exact same color. Adobe RGB and my monitor profile both produce that hue as a much richer and vibrant red because of where that value falls relative to 255, 0, 0 (the most saturated possible red) as RGB values. In sRGB, 255, 0, 0 is nowhere near as saturated since it's a much smaller space, so C73333 also falls to a much more desaturated color to maintain its position between 255, 0, 0 and 0, 0, 0. It has to since the richer red of my monitor is outside of sRGB's space.


Here's how it looks to me. My monitor profile on the left, and the exact same value of C73333 when applied as sRGB.


User uploaded file


So what's basically happening is that Chrome and Firefox are ignoring any embedded profiles of the images on a web page, if they have one, and displaying them as sRGB. In the case of images saved without a profile, they (and also Safari) default to applying sRGB on the fly. Which results in a duller color range than what your monitor may actually be capable of reproducing.


Safari then is the only one of the three attempting to display tagged images according to their embedded profiles rather than everything as sRGB. Chrome and Firefox are not.


Hope that makes sense.

Apr 19, 2014 3:19 PM in response to ahlex86

Okay, once again I researched a lot and found the following:


1. It actually is a color management problem. Safari is the only browser (of those 3) that fully supports color management, meaning that it also treats CSS colors as sRGB (like recommended by W3C).


2. Neither Firefox nor Chrome support this out of the box. Chrome being the biggest problem as there is only a command line fix available for the Windows version. Firefox can quite easily be set up to support color management even for untagged images and CSS colors: Go to about:config and set "gfx.color_management.enablev4" to "true" as well as "gfx.color_management.mode" to "1". (Source: http://simon.tindemans.eu/cm/webcm)


Now Firefox is working as well as Safari, but Google Chrome still got this huge problem and it doesn't seem to get fixed. There already is a ticket (since 2010!), even with replies from 2014, but I don't see anybody taking action here. As probably most people are using Chrome these days, this problem affects everyone providing websites, blogs or photos.


However, I still don't understand why Chrome on my Macbook Air behaves as described (not displaying colors correctly), but on the iMac actually handles the colors totally well (even though it shouldn't be possible at all).

Apr 21, 2014 6:03 AM in response to ahlex86

I just don't get why Chrome on my Macbook Air displays everything as sRGB while on the iMac it seems to apply the embedded profile?

That is a very good question. They should behave the same. I don't (and won't) use Chrome, so can't comment on it otherwise.

1. It actually is a color management problem. Safari is the only browser (of those 3) that fully supports color management, meaning that it also treats CSS colors as sRGB (like recommended by W3C).

Yes, that would be the correct way to do it since colors defined in CSS are just values with no way of assigning a particular profile. So treating them as sRGB is the default behavior, same as an untagged image.

2. Neither Firefox nor Chrome support this out of the box. Chrome being the biggest problem as there is only a command line fix available for the Windows version. Firefox can quite easily be set up to support color management even for untagged images and CSS colors: Go to about:config and set "gfx.color_management.enablev4" to "true" as well as "gfx.color_management.mode" to "1".

Excellent find! I always kind of wondered why Firefox behaved differently. You would think a browser that's been around this long would have color management built in and set as the default. Not the user having to manually turn it on.

but Google Chrome still got this huge problem and it doesn't seem to get fixed. There already is a ticket (since 2010!), even with replies from 2014, but I don't see anybody taking action here.

Chrome does have a huge usage over everything else, which really surprises me since I think it's a lousy browser. I tried it not to long ago to see what all the fuss was about, and wondered why anyone would use Chrome, or what they thought was so great about it.

However, I still don't understand why Chrome on my Macbook Air behaves as described (not displaying colors correctly), but on the iMac actually handles the colors totally well (even though it shouldn't be possible at all).

That is a very weird mystery. I assume they're the same version?

Apr 21, 2014 6:56 AM in response to Kurt Lang

Why do you think in particular that it's a lousy browser? I have used Firefox for years and hesitated to use Chrome, as I usually think: Never change a running system. But now I prefer Chrome as it appears to be much faster, very reliable, with great extension support and pretty good CSS interpretation. I haven't extensively used Firefox in a while, only for testing purposes, but it still seems a bit bulky to me. With the new features, I could probably consider using Safari more, especially because of that great color management. Even though it might be a bit slow compared to Chrome.


And to answer your question: Yes, they were the same versions. Well, I think that my Macbook Air probably got a worse screen (or a lesser calibrated screen) than my iMac (which is one of those new that get "professionally" calibrated by Apple, if I remember correctly). Maybe the color profile on the iMac is so good that it doesn't really matter whether Chrome can handle the colors or not. Actually, I never found such great color differences between browsers ever before like when trying #C73333. Reminds me of 1998.


Whatever. Thanks for your help, Kurt Lang, I suppose, this problem simply isn't solvable (by us). We need to use pictures with an embedded sRGB profile to make sure everyone gets at least the pictures right. And the CSS colors? Well, I think we'll have to accept that it'll take a few more years until everyone (Hi Google!) wants to solve this.

Apr 21, 2014 7:35 AM in response to ahlex86

Must be a bit longer than I thought I last tried Chrome. I downloaded it again just now and it is greatly improved over the last time I tested it.


According to numerous sites, Chrome has supported color management on the Mac side for a while now. It didn't at all before, which was one of the things I hated about it. But there's confusion on that.


This site from 2012 says Chrome is color managed. This one from August 2013 says it isn't. But yet again, this test page running in Chrome does show the car in the orange color it's supposed to be, which the author says means, yes, it is color managed. That was for version 19 of Chrome though, and the current is version 34. So quite a bit of updating since then.


I'm liking Chrome quite a bit more than before.

Jun 8, 2016 2:29 PM in response to v.zbi

Yup, normal for Chrome or Firefox. Both of these browsers only color manage tagged images. Nothing else. Safari color manages everything, whether it's tagged with profile or not, or even can be.


Your screen grabs are a perfect example of that. Safari is automatically applying sRGB to the web content. Since that's a small color space, it gets pushed to less saturated color. Firefox exerts no color control whatsoever on the same page, so the same RGB values they used get displayed according to your monitor's much larger color gamut.


Which is the way the color was intended to appear? Only the person who made the web page would know for sure.

Why do Chrome and Firefox show heavily desaturated colors compared to Safari on OS X Mavericks?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.