views:

661

answers:

8

I have a web page which has a pic. That pic has a color.

I need the hex code of the color in that pic. How can I get it?

A: 

Take a screen shot and open it in a regular or sophisticated paint application to get the color. Or better: download the pic and open it in a paint app.

lbp
Isn't that a lot of hard-work?
Cyril Gupta
there is no way to get the hex of colors in paint
Not really. "Print Screen" to get the image, open image editor, paste (CTRL+V), select picker tool, read colour value.
ChrisF
+7  A: 

Get firefox. Get ColorZilla plugin. Click mouse on ColorZilla. Move over the color you want. Voila! You have the hex codes.

Cyril Gupta
ColorZilla is a very handy Firefox plugin! One more reason I can't develop in IE.
scunliffe
Even if there is a color picker in IE? And most of what you need from the Web Developer plugin is available in the IE Developer Toolbar?Don't get me wrong, I like FX - but lets not go slamming things we don't understand.
AnonJr
'Even if there is a color picker in IE?' -- ? Who has ever heard of a web developer shunning FireFox to develop in IE instead? Is color picking the only thing one will ever need? Have you heard of firebug? IE's developer toolbar is just an inferior cousin
Cyril Gupta
Btw, I am slamming what? What is it in my answer that's slamming anything. Please highlight.
Cyril Gupta
@Cyril: Wasn't referring to your answer - the @scunliffe got missing. Also while I wasn't saying to shun Fx, I was saying don't shun IE. Have you heard of a web developer shunning the browser with the largest market share?
AnonJr
I am not asking to shun IE Anon :). I am asking not to shun FX cause it's so developer friendly. I did earn some practical sense about market share over the years.
Cyril Gupta
+2  A: 

The IE developer toolbar (F12 in IE8) has a colour picker in the tools menu that should help you.

Kindness,

Dan

Firefox has a few add-ons available that do the same thing.

Daniel Elliott
A: 

Take a screen shot of the page, open it in Adobe Photoshop and select that color with the dropper tool. The Color dialog will show you the Hex Code, the RGB Color and the CYMK color code for that. You can do the same in GIMP if you dont have Photoshop.

Bhaskar
+1  A: 

If you want to do this in software, rather than manually, you could use a canvas element in supported browsers - draw the image on the canvas, then extract the colour information of the desired pixel. See this related question for how.

Paul Dixon
+2  A: 

Another soft - ColorPic.

Arnis L.
A: 

ColorSchemer ColorPix is another good option. Light weight, and it gives you (among others) the RGB as well as the Hex for a given color.

AnonJr
A: 

You can try Pixie from Nattyware. That is free and they also have a portable version.

link text

João Guilherme