Steps to reproduce issue:

  • create a new document
  • fill layer with solid color (#4b4b6b)
  • export as jpg (File > Export)
  • New JPG color is #4b4c6b (i.e. not the same, notice the 3rd character)

When trying to match a css background color it's a real pain.

I use a colorpicker to ensure the fill color is indeed 4b4b6b I use the same colorpicker to ensure the HTML document is 4b4b6b

Only the JPG is "wrong"

When I "Show preview in image window" (this option is in the export dialog) I can see the solid color changing ever so slightly. I've tried toggling every option in that dialog.

Is this a bug or is there a magic checkbox that will solve my problem?

A workaround is to export as PNG and convert PNG>JPG with another utility like imagemagick.

  • Everything color calibrated?
    – Scott
    Oct 26, 2020 at 21:56
  • @scott It's all on the same equipment, the hex value shouldn't change, try it :-)
    – nlambert
    Oct 26, 2020 at 22:06
  • hardware calibration, while important, is not the same thing as proper color profiles for applications. An image editor is entirely capable of saving an image with color that appear incorrect on the same hardware.
    – Scott
    Oct 26, 2020 at 23:23
  • Gimp has only 1 color profile (maybe you can add others, I haven't tried). Color in should be color out unless you are changing something in between. I've just now tried with Krita which is producing consistent results.
    – nlambert
    Oct 27, 2020 at 0:09
  • @nlambert color management can be hard to grasp even on same device it doe snot produce same result between profile aware and unaware software. Its working as intended you just havent put teh right values in. Also JPEG is not a good format for exact color reproduction
    – joojaa
    Oct 27, 2020 at 11:31

1 Answer 1


JPG is a lossy format, you can't expect anything to remain the same. Save as a PNG to retain all information.

  • Could be the libjpeg library... ImageMagick does the same if I convert a 4b4b6b PNG to JPG.
    – xenoid
    Oct 27, 2020 at 12:30
  • Photoshop gets consistent results, Krita does as well, I've also tried putting the "quality" all the way DOWN in Krita, and all the way UP in Gimp. Krita produces consistent results, Gimp does not.
    – nlambert
    Oct 28, 2020 at 0:32
  • @nlambert so, make a bug report. There's nothing we can do about it, and so there's no point complaining here.
    – Billy Kerr
    Nov 5, 2020 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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