Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode renders color several shades darker despite using same RGB

enter image description here

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.

enter image description here

like image 599
daspianist Avatar asked Jul 10 '14 20:07

daspianist


3 Answers

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.

like image 128
John Biddle Avatar answered Nov 19 '22 10:11

John Biddle


When you are using the Digital Color Meter, select "Display in Adobe RGB" to give you the proper color code to use when selecting colors in Photoshop.

like image 3
Mike Deluca Avatar answered Nov 19 '22 10:11

Mike Deluca


I found out that in the color picker in Xcode is a settings button and there you can pick up a color profile. Default is Generic RGB, so I choose sRGB IEC6... and it worked fine for me.

enter image description here

like image 3
goodliving Avatar answered Nov 19 '22 10:11

goodliving