Wrong color displayed

Hello,
today I recognized, that Juce paints slitly diffrent color codes than the given ones. Why does it behave like this or am I doing something wrong?

For example, this:
auto color = Colour(42, 42, 42);
g.fillAll(color);

translates to a painted color of (46, 46, 46) (checked with colorpickers from other programs)
Juce does it with every color I use. First I thought, is has to do something with opacity. But the opacity is 1.

I’m on windows-machine.

1 Like

Could this be related in the end?

If so, the problem is much deeper than assumed, so far only Mac and ProTools was reported, both factors are unrelated…

I created a png-file with plain fillcolor 42,42,42 and opened it in diffrent applications (windows-photo-app, Paint 3d, Paint.net, inkscape). it has either (46, 46, 46) or (41, 41, 41), but never (42, 42, 42) when picking it back with the colorpicker from the program i created it with (Affinity Designer). Hmm, so does it mean, this is normal behaviour?

I’ve never experienced something like this befor. maybe because the diffrences are to suttle?

To be honest, I don’t know, what’s going on. I have currently 4 Graphic-apps open and some browsers with html color-pickers or the 42-42-42 test-png loaded. now, I get everywhere the right color code when picking it with color-pickers. even juce is displaying the right color code?! do I need to understand this?

Edit: ok, I found the problem. By default, affinity uses the color palette adobe 1998. and there, the colorcodes seem to be diffrent. after converting the document to sRGB and re-adjusting the colors, I have identical colorcodes in every application including juce.

2 Likes