Color Matching - codepath/ios_guides GitHub Wiki
You may have noticed that the native color picker in Xcode seems a little off sometimes. One workaround is to use the Digital Color Meter in macOS and then manually type the RGB into Xcode.

Step 1: Configure Digital Color Meter
- Set Digital Color Meter to sRGB
Step 2: Pick a Color
- Hover over the color you want, and use cmd + L to lock in color.
Step 3: Configure Xcode Color
-
Choose "Other" from the dropdown color menu.

-
Select the RGB Sliders tab.
-
Click the little gear and select sRGB IEC61966-2.1 from the dropdown menu, so the values you type are interpreted in the same color space you measured them in. (The screenshot below shows the menu with the default Generic RGB still selected — don't leave it there, or the same numbers will produce a slightly different color. On iOS,
UIColor(red:green:blue:alpha:)component values are interpreted in the sRGB color space.)

Step 4: Enter the RGB Values
- Finally, you will need to manually enter the RGB values from the Digital Color Meter into the Xcode RGB value boxes.