Chrome renders colours differently from Safari and Firefox

CssGoogle ChromeColorsRendering

Css Problem Overview


Chrome renders #FF3A00 as #FF0000 for some reason. I included a screenshot from jsfiddle to illustrate the point. The colour that the Color Meter reports (and what I see) differs from what CSS says.

This happens to other colours too. For example, #FFAF00 is rendered as #FFA400 according to the Color Meter.

However, the colours are rendered without problems on Safari and Firefox. I'm on a Mac using Chrome 11, Safari 5 and Firefox 5.

I'm sure there's a logical explanation. Any ideas?

Update: I'm attaching a screenshot of Chrome next to Safari showing the very same page. I checked this image in Photoshop: the colours are #F00 in Chrome and #FF3A00 in Safari.Chrome vs Safari

Chrome renders #FF3A00 as #F00

Css Solutions


Solution 1 - Css

Ok, as it turned out, I needed to restart my Chrome. I often connect my macbook air to a 24 inch monitor. It looks like Chrome displays the colours incorrectly when I change to a monitor that's different from what was used when Chrome was started.

I found the answer on the Google Help forum : "I should mention that in OS X, every time you change your monitor or monitor profile (e.g. if you switch from your laptop display to your external display), you MUST restart Chrome for it to get the proper monitor profile information from the OS."

Solution 2 - Css

By default both Firefox and Safari use the sRGB color profile. You must do the same, if your Google Chrome takes a different color profile as default.

  1. Access at Chrome: chrome://flags/#force-color-profile
  2. Change Force color profile to "sRGB".
  3. Relaunch your browser and testify the rendered colors now.

Solution 3 - Css

Solution 4 - Css

Mac has color correction set up for your monitor. Your browser may or may not use color correction for web content/images depending on its setup. Your color picker reports what your OS thinks it is rendering. Your browser may report something else.

Color on computers. Something many of us take for granted but never bothered to understand how it is rendered.

Solution 5 - Css

Chrome color picker works by taking color from current monitor color profile,and the problem may happens by changing color setting or sometime change monitor, please check the below method to solve.

Go to chrome://flags/#force-color-profile and click Reset all to default

Thanks.

Solution 6 - Css

I changed the Colour Profile in OS X and that sorted it for me.

See the screenshots below using different Color Profile. Note, in the screenshots I'm trying to differentiate between #ff00ff, #ff1aff, #ff33ff and #ff4dff. It's only when I don't choose the default OS X colour profile that I can differentiate the colours correctly.

Default colour profile:

with default profile

With a different colour profile:

with sRGB ICE61966-2.1 profile

From: https://stackoverflow.com/questions/55435873/css-colors-on-os-x-displaying-correctly-in-firefox-but-incorrectly-in-safari-and

I found Safari and Chrome could not differentiate between #ff00ff, #ff1aff, #ff33ff and #ff4dff. But Firefox could. In addition Inkscape, an X11 app, could. But Gimp and Libreoffice Writer, non X11 apps, could not. Firefox and X11 apps seem to be using their own colour profile somehow.

I have no idea why Mac defaults to Color LCD profile which does not do this differentiation amongst others.

Solution 7 - Css

In case someone else come here because firefox images looks too colorful (over saturated). Full guide on how to fix it https://cameratico.com/color-management/firefox/

Shortly:

  1. Type in about:config on your Firefox address bar
  2. Set gfx.color_management.mode to 1
  3. Set gfx.color_management.enablev4 to true
  4. Restart firefox

Now Firefox will display colors same as Safari, Chrome and all other browsers

Solution 8 - Css

Had this problem with Chrome (Lubuntu) when exporting a PNG in Photoshop. Solution: File -> Save As -> Uncheck "ICC Profile: Adobe RGB (1998)".

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEvgeny ShadchnevView Question on Stackoverflow
Solution 1 - CssEvgeny ShadchnevView Answer on Stackoverflow
Solution 2 - CssLindoélio LázaroView Answer on Stackoverflow
Solution 3 - CssTrevor BurnhamView Answer on Stackoverflow
Solution 4 - CssartificialidiotView Answer on Stackoverflow
Solution 5 - CssMuthukrishnanView Answer on Stackoverflow
Solution 6 - Cssmmm111mmmView Answer on Stackoverflow
Solution 7 - CssPavel EvstigneevView Answer on Stackoverflow
Solution 8 - CssZarView Answer on Stackoverflow