Copy Colors on macOS with System Color Picker
In this article
To copy a color on macOS, open the built-in Color Picker (available in most apps), click the magnifying glass icon, then click anywhere on your screen to sample the color. The exact hex code or RGB values are shown in the picker, and you can copy them from there. This works in any app that uses the standard macOS color panel, such as Pages, Numbers, Keynote, TextEdit, and many third-party apps.
What You'll Need
- A Mac running macOS (any recent version, though menu labels may vary slightly).
- An app that uses the standard macOS Color Picker (most Apple apps and many third-party apps do).
- If you want to copy a color from a specific screen element, have that element visible on your display.
Step-by-Step
- Open the Color Picker in an app. In most apps, you can do this by clicking a color well (a small colored square) or by selecting a text color option. For example, in Pages, select some text, then click the Text Color button in the toolbar. In TextEdit, go to Format > Font > Show Colors, or press Command+Shift+C.
- Click the magnifying glass icon. In the Color Picker window, you'll see a toolbar at the top with several icons. The first icon (usually a magnifying glass) is the "eyedropper" tool. Click it to activate color sampling.
- Hover over the color you want to copy. Your cursor will change to a magnifying glass with a crosshair. Move it over any pixel on your screen. As you move, a small preview shows the color you're hovering over, and the RGB values update in the picker.
- Click to sample the color. Once you're on the exact color you want, click once. The color is now selected in the picker, and the RGB values (Red, Green, Blue) and hex code (like #FF5733) appear in the fields below.
- Copy the hex code or RGB values. To copy the hex code, click the small color swatch at the top of the picker (the one that shows the current color) and press Command+C. Alternatively, you can select the hex code text in the field and copy it with Command+C. For RGB values, select the numbers in the R, G, B fields and copy them.
- Paste where you need it. Paste the copied code into your design tool, code editor, or document with Command+V.
Common Mistakes
- Clicking the wrong icon: The magnifying glass is the eyedropper; the other icons are for different color models (like RGB sliders, HSB, or CMYK). Make sure you click the magnifying glass first.
- Sampling from the wrong screen: If you have multiple monitors, the eyedropper samples from the entire display space. Make sure the color you want is visible on any connected display.
- Copying the wrong value: The hex code and RGB values are different formats. Make sure you copy the one you actually need.
- Forgetting to click the swatch: Clicking the color swatch copies the color in a special format (like a color pasteboard item). If you want plain text, copy the hex code from the text field instead.
Tips
- Use keyboard shortcuts: In the Color Picker, you can press Command+Shift+C to open it directly in many apps. To sample a color, you can also press the Spacebar after clicking the magnifying glass to temporarily zoom in for precise selection.
- Save colors for later: The Color Picker includes a palette section where you can drag colors to save them. This is handy for building a consistent color scheme.
- Copy multiple formats: If you need both hex and RGB, copy the hex first, then select and copy the RGB values separately.
- Use the sliders for fine-tuning: After sampling, you can adjust the color slightly using the RGB or HSB sliders to get the exact shade you want.
Troubleshooting
If the color doesn't copy or the eyedropper doesn't work:
- Make sure the Color Picker is active: Click on the Color Picker window to bring it to the front before trying to sample. If the app is in the background, the eyedropper may not respond.
- Check if the app supports the standard picker: Some apps (like Adobe Photoshop) have their own color picker. Use that app's built-in eyedropper tool instead. If you're using a web browser, you might need to use a browser extension or a dedicated color picker app.
- Restart the app: If the picker is frozen or not responding, quit the app and reopen it.
- Try a different app: If it still doesn't work, open TextEdit, go to Format > Font > Show Colors, and test the eyedropper there. If it works, the issue is with the original app.
Frequently Asked Questions
Can I copy a color from a website in Safari?
Yes, but you need to use the Color Picker from another app (like TextEdit) and then switch to Safari while the eyedropper is active. The eyedropper can sample from any screen, including web pages.
How do I get the hex code of a color I sampled?
After sampling, the hex code appears in a text field at the bottom of the Color Picker (e.g., #RRGGBB). You can select it and copy it with Command+C.
Can I copy the color as a color swatch to use in other Mac apps?
Yes. Click the color swatch at the top of the picker and press Command+C. Then in another app that supports color pasteboard (like Pages or Numbers), select the text or object and press Command+V to apply the color.
Does the Color Picker work with external displays?
Yes, the eyedropper can sample colors from any display connected to your Mac, including external monitors and even the menu bar or desktop.
Why does the eyedropper only show a small circle instead of the whole screen?
That's normal. The magnifying glass view zooms in on the area around your cursor so you can see the exact pixel you're sampling. Move the cursor to change the area.
Can I copy a color from a PDF or image?
Yes, as long as the image or PDF is visible on your screen. Open the file, then use the Color Picker's eyedropper to sample any pixel from it.