Xcode renders color several shades darker despite using same RGB

colors, xcode, xcode5

Solution

Photoshop tries to use a "color correct" color profile for your monitor. You can change what color profile it uses by going to "View > Proof Setup" and either selecting one of those, or clicking on "Custom" to get a full list of the color profiles on your computer. If you're trying to match Xcode, which is using the default profile, you should look for one like "Monitor RGB" or "Apple RGB". In the "custom" menu, there's also an option to "preserve RGB numbers" which I imagine will help.

This comes primarily from Windows experience, so I'm sorry if it doesn't apply here.

Problem

The image on the left comes from Xcode, while the image right is from Photoshop. Both colors are inputted using the same RGB value, but as you can see, the colors show up differently when displayed. Using Apple's own DigitalColor Meter, the Xcode blue color is `RGB(133, 179 185)` while the Photoshop color is `RGB(149, 192, 197)`; and the XCode yellow color is `RGB(227, 205, 102)` and the Photoshop yellow color `RGB(233, 212, 119)`, so there there is no set increment that I can apply to any color. I was wondering if there is a fix to "brighten up" the colors in XCode so I can get exactly the colors I am looking at when using the RGB coordinates. Thanks! Edit: I have tried manually entering the RGB coordinates from using the DigitalColor Meter into Xcode, and even then the colors do not appear as the same when put in a side-by-side comparison. Edit 2 When I use "Adobe RGB" in the DigitalColor Meter, this is the result. As you can see, the colors still do not match.

Original source