Introduction: How to Get the Hex Code for Any Color on Your Screen

I will show you how to get the Hexadecimal code for any color that your computer monitor shows you, so that you can use them in HTML documents and other fancy-schmancy computer stuff. Surprisingly, it uses legal software.

Step 1: Download GIMP

GIMP is good. It has a lot of the stuff Photoshop has, but not all. Perhaps that's why it's free. But still, it's a lot better that crappy old Paint. Anyways, it is a requirement for this instructable. Get it. Don't worry, I'll wait...










Got it? Good. Off we go...

Step 2: Look at Your Keyboard, Next to F12

Okay, now look down. No, not there. There. Good. Now, on your keyboard, look at the top where there are all the keys with the F's on them. No, not the "F" key. The other ones. Are you looking at them? Go to the one that says "F12." Now, look right next to that one. It will say "Print Screen" on it. Remember where that is now.

Step 3: Let's Get This Party Started!

Okay, enough prep. Go to the place that has the color of your choice (for my example, I will use Instructables Orange) and hit "Print Screen."

Step 4: Open Up Gimp and Paste

Start up gimp. If you cant find it, look in the start menu. If you have XP, then it should say "new programs added." Once you've started up GIMP, click "File --> New." Make sure you give it a size that fits the entire thing, of at least that fits what you want to copy. Then, press Control + V. You now have a screenshot of your computer, with the window header and everything! But this is not what we want. Read on.

Step 5: Color Picking 101

Put GIMP back up, and select the color picker tool. It looks like a little eyedropper. Put it over the target color, and click. The color will show up in the little-color-sample-preview-thing.

Step 6: CLICK!

Click on the little-color-sample-preview-thing. It will show you the little-color-sample-editor-thing. On the middle left, it will show you... GASP! The Hexadecimal code! We've found it! YAY! Now, be sure to memorize it so you don't forget it!

Step 7: How to Implement It

Now, how do you use this bit of letters and numbers? I will kindly show you where colors go in HTML, to the extent of my knowledge. PM me if you know of any other ways.

To change background:
<body bgcolor="Hex Code Here">

To change font:
<font color="Hex code here">

Comments

author
jbeekman (author)2015-09-28

While I can appreciate humor and whatnot in an Instructable this could of been two pages with a lot less filler.

author
BillyM1 (author)2014-08-22

Nope, no toolbar.. color picker does not show popup.

author
Newell_Jalynn (author)2014-01-05

waaaaah?XD

author
ss89 (author)2011-11-12

One step easier, shift-click brings up the info window and each subsequent click is updated in this new window, so you can see several colors quickly.

author
chrizby (author)2009-01-03

Or you could go to this web site and save the page to get the hex codes.
http://www.webdiner.com/annexe/hexcode/hexcode.htm

Love instructables!!

author
BBZS (author)2008-12-08

You could also just do this:

<font color="orange"> or<body bgcolor="orange">

But that won't be as accurate of course.

Nice tutorial anyway, also, I LOVE GIMP!!

author
YummyPancakes (author)BBZS2008-12-08

You're telling me! I recently made a new website dedicated (in part) to what I create in GIMP. Here it is:

Ch0sen Entertainment

author
BBZS (author)YummyPancakes2008-12-09

I have a website too! GamerReviewsMega

I like the design of your website, can't wait till there's some projects posted!

(I use HTML,not C++)
Also, is there a difference between C++ and CSS??

author
YummyPancakes (author)BBZS2008-12-09

Oh really? I like the design of yours too. I never really got into HTML. I created one game with it and JavaScript, and then got bored. (I'm a game developer, not a site developer, with the exception of C0E.)

As for your question, of course! IF you've written complex web pages, chances are you have used CSS. Basically, it's what's between the <style> and </style> tags. As you can see (if you read my tutorial), C++ is not the same as CSS.

author
BBZS (author)YummyPancakes2008-12-09

No, I didn't read it, I had to go to MAC (Marital Arts Class).

I don't think I've ever used the style tags though. Anyway, thanks for the chat =D!

author
stuuf (author)2008-08-08

There's actually a much simpler way to do this with Gimp without wasting time doing a screen capture (also, if you do need a screenshot, gimp has its own screen capture plugin that can even crop to a single window or do time delay, and isn't affected by the fact that print screen-paste only works on windows) On the color select dialog, right next to where it shows the hex value, there's a button that lets you click any color on the screen and select it. And it shouldn't be "surprising" that you don't need to buy/pirate expensive software to do something this simple :)

author
jonnxt (author)2008-06-28

there's 1 problem I noticed in the past with print screen. some colors will show up inaccurately. resulting image may become pixlated and low quality.

author
xACIDITYx (author)jonnxt2008-07-12

Only if you paste it into paint and save it as a jpeg. Here, we're not saving it at all, so there is no color loss.

author
YummyPancakes (author)xACIDITYx2008-07-12

Yes.

author
maruawe (author)2008-03-13

It is as easy in Photoshop,if not easier..If you are on a budget you can use Elements from Adobe..

author
YummyPancakes (author)maruawe2008-03-13

GIMP is free. That's enough for a little trouble.

author
maruawe (author)YummyPancakes2008-03-14

Gimp may be free, but to do professional work it leaves a little bit to desire.. I understand that everyone cannot afford to purchase expensive programs, I have gimp also but hardly ever use it. The program that I gave as an alternative ,Elements, is pretty reasonable at about $100.00..

author
zpersichetti (author)maruawe2008-04-09

im pretty sure the newest one is like $60 im not 100% sure though but ya its unbelievable that its $600 for regular photoshop i want it so badly that and flash :P

author
fungus amungus (author)2008-03-11

If you have a Mac, you already have DigitalColor Meter.

author

...But if you have a PC, you have to do this. :-)

author

It's true :) If you need to know hex codes I'd try some other tool. I've done it your way before with photoshop and having a tool for it is a lifesaver. Especially when I'm working in Illustrator and need some colors fast.

author
SilentTecro (author)2008-03-11

Or for websites, install Firefox and ColorZilla. Your method works well for colors in other programs, though, and like ColorZilla it's cross-platform.

author

Hmm, I think I'll try it...

author

Works great. Luckily, I already have Firefox (Look closely in the pictures.)

author
crankyjew (author)2008-03-11

this sort of thing works in paint.NET too.

author
GorillazMiko (author)2008-03-11

Cool. I like how you used Instructables. Why? Because Instructables rules.

About This Instructable

233,311views

5favorites

License:

Bio: Hey, I'm back. Maybe. I had a long period of inactivity on Instructables, but now I'll try to came back and do more ... More »
More by YummyPancakes:How to play... MANCALA!!!How to get the Hex code for any color on your screen
Add instructable to: