Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
You do realize that you didn't need to register a second account to answer your questions, but can simply answer them with your own account (like e.g. I do)? –  Daniel Beck Dec 30 '11 at 8:26
    
I asked a moderator about it; if you want, they could merge your accounts. There is no rule against answering your own questions. (Assuming you are haxie) –  Daniel Beck Dec 30 '11 at 8:55

3 Answers 3

up vote 8 down vote accepted

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.

share|improve this answer
    
Just to add you can get the output in hex by going to View->Display values->Hexadecimal –  donturner Jul 13 at 19:09
    
I tried command+shift+c but it does not copies the values in mountain lion. Update: We have to keep the DigitalColor Meter Selected, I would click on the image expecting the keys to copy the color. –  pal4life Aug 8 at 20:53

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

share|improve this answer
    
Can they pick color under cursor? –  qed Jul 18 at 15:56

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

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.