I have a problem when I'm exporting a .png file in Sketch 2. I have an icon with the background color of #8FBE00 but when I'm exporting it as a .png file the background color is #8EC003. I have absolutely no idea what's going on, I've never encountered this problem when working with Sketch before. I'm no Sketch expert so maybe someone can help me.

  • 2
    Run "pngcheck -v" on your exported .png file to see if it has any color management chunks such as gAMA, iCCP, or sRGB. Depending on what application you use to observe the background color, these chunks might cause slight color differences. – Glenn Randers-Pehrson Jun 30 '14 at 17:34
  • @GlennRanders-Pehrson how do I run "pngcheck -v" on my file? – Oskar Jul 1 '14 at 8:37
  • I noticed that the colors are different when checking them on different screens, but why is the color changed when exporting. As you may notice Im new to this stuff. And I also noticed that all my exported images from Sketch changes color.. – Oskar Jul 1 '14 at 9:09
  • "pngcheck -v file.png". If you don't have pngcheck installed on your system, you can download it from libpng.org/pub/png/apps/pngcheck.html – Glenn Randers-Pehrson Jul 1 '14 at 12:28
  • How do I install it after download @GlennRanders-Pehrson – Oskar Jul 1 '14 at 12:38

I've made a quick test with 2 exports from Sketch, with and without Color profile.

With Color Profile

When I use the Mac DigitalColor Meter it measures exactly the same colors.

If I use Affinity Photo it's the same. It assigns a color profile to the png file that does not have it and measures the exact hexadecimal values.

Processing the images with a PNG compressor removing EXIF meta and color profile data does not change any values measured.


  • Sketch always save as sRGB (not gAMA) with the 'Save for web' unchecked.
  • If 'Save for web' is checked, opening that image in any software will append a color profile. Luckily would be sRGB and it will have the same created colour in Sketch.
  • Opening the png image in Safari will be interpreted as sRGB.

The problem may be that when you are working in Photoshop your file is being color managed. You can turn that off and it should allow you to maintain the color you want. I‘ve included a link that explains how to turn off color management in photoshop. http://bjango.com/articles/photoshop/ I found it through a link on hack design.

  • THat article is so wrong. You really never want to turn "off" color management. It goes to show how 1 person with the wrong information who likes to write can spread mis-information. digitaldog.net has better information. In addition, the question specifically asks about Sketch, not Photoshop. – Scott Aug 16 '14 at 14:24
  • I assumed you were creating the png file from a photoshop document. My bad. I’ll have to check out digitaldog.net – ERAY Aug 16 '14 at 14:46
  • Late to the party ... Pretty sure @marc-edwards (active here) is behind Bjango. Would be nice if he'd chime in. – plainclothes May 22 '15 at 18:38
  • @Scott The article is not wrong, if you’re doing screen design and using an sRGB like display. It is important to recognise that appearance isn’t the only concern when it comes to colour management (values matching, rounding issues and avoiding clipping can take priority). – Marc Edwards Mar 25 '17 at 22:23
  • Yeah @MarcEdwards we've had this conversation. Your misguided advice to disable color management is horrible in my opinion. – Scott Mar 26 '17 at 2:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.