97

I'm looking for a way to easily pick a color from anywhere on the screen in Mac OS X and get the value as a hex code (like #ACC782 ).

OS X has a built in system "color picker" and I found a standalone "app" that will just run that, but I don't see any way to get the hex code from it.

Firefox and Chrome both have "color picker" extensions but I'm looking for something that I can use on any application.

What can I use for that? It would be really nice if it automatically copied the value to the clipboard, but that may be asking too much :)

enter image description here

music2myear
  • 49,799
cwd
  • 18,788
  • 43
  • 123
  • 162

4 Answers4

211

OS X comes with DigitalColor Meter:

Applications > Utilities > DigitalColor Meter.app

It has many options and preferences.

command+shift+c will copy the color under the cursor to the clipboard in many different formats.

broomdodger
  • 3,200
11

The Mac OS X color picker is extensible.

Use Hex Color Picker to add a tab that provides you the configured color in hexadecimal RGB.

enter image description here

Just run e.g. TextEdit and press Cmd-Shift-C to open the color picker, or run your standalone program.


An even more versatile color picker is Developer Color Picker with many different output formats, one of which is hexadecimal.

enter image description here

Pnutus
  • 103
Daniel Beck
  • 111,893
3

This is easily done with AppleScript. A complete working example of code is available here.

enter image description here

Gareth
  • 19,080
mark
  • 651
1

I know this is a super old post, but just thought I'd throw this one out there that I've been using for awhile: Sip. Works pretty sweet, and you can get a ton of different color options.

App Store Link: Sip

I have no affiliation with the developer, just think it's a cool little app. And it's Free! :-) Enjoy

Drew
  • 139