Hello. You've arrived at Téa's blog, where she likes to muse about her findings and observations from the world of fun graphics, the web, and whatever else that she finds inspiring (or annoying) enough to post about.

In other words, you get all of Téa's verbal offerings here, as opposed to the usual resource downloads that can be found on the main part of this site.

Want to subscribe to this blog via RSS feeds or even via your "friends list" if you're from LiveJournal? Check here!

Quickly turn any picture into color swatches

Posted on June 23, 2005 at 02:47 am under Tutorials and Tips

Software Used: Adobe Photoshop 6.0

Sometimes you may come across a picture that’s filled with colors you’d like to use or save; for example, you might have a picture of a beautiful flower with a range of colors that you want to use immediately. Of course, you can always use the Eyedropper tool to pick up the different colors one at a time, but why not quickly get all the base colors in one go?

In this tutorial, I’ll be covering how to grab your colors in Photoshop and then load them for use at any time. It’s really a very simple method that many people don’t think to do, but I personally find it immensely useful and time-saving.

The picture with colors you want = The instant table of color swatches

Step 01: Pick a Picture and Choose Color Options

The first part of it all is to have the picture you want to grab the colors out of. Have one? Now, what you’re going to do next is get an instant table of those colors. You’ll probably laugh at how easy it’s going to be!

Now that we have a picture, we’re going to pretend to save the image for web. So go to File > Save for Web. When the prompt for saving pops up, there will be several saving options to choose from. In the following illustration, the areas I’ve highlighted in yellow are the only ones we’ll need to pay attention to for our purpose:

the color options

An explanation of the options

First of all, you’ll need to choose GIF for the file format. Once you’ve switched the format to GIF, you should immediately see a table of colors right under those options. Now, as for the other two areas I’ve highlighted, they’re all up to you as to what you want to choose. The number of colors is of course dependent on how wide of a range you want to go with (you can go up to 256 here).

As for the other highlighted area, this is where the colors will vary a little, so just pick whichever ones you like best. You’ll see your range of colors change as you switch. I recommend that you only choose between Perceptual, Selective, or Adaptive.

Done choosing? In the next (and final step), you get your colors for good!

Step 02: Grab and Save the Colors

Save your color table

Now that you’re done with the options, all you have to do is save the color table- not the picture, so don’t hit the Save button up top. What you’ll do is click on the little right-hand arrow that’s right next to the table of colors. See it? Click.

Choose the option Save Color Table... and you can change the name to something else that you’ll easily recognize if you want. Then just save it on to the default folder that Photoshop picked. After you’ve saved the color table, hit cancel and leave the whole saving picture for web window, because that’s not what we were doing.

Load your color table for use at any time

Go back to your main photoshop area. Then in your Swatches palette/window, click on the little right-hand arrow. Choose either Load Swatches or Replace Swatches, depending on what you want to do. Locate the color table that you had just saved earlier. Voila. You should have your swatches!

The instant table of color swatches

I got the above color table by choosing Adaptive and 64 colors. You can always re-use these colors anytime since they’re saved.

Here’s another example:

Picture to grab colors from Resulting color swatches

For this one, I chose Selective and 128 colors. That’s all!

Conclusion and Limitations

Now, there’s always going to be limitations to this method because not all the colors will be picked up with the maximum of 256 colors allowed. Certain pictures and certain colors will yield more accurate color tables, while others not so much since we’re using the GIF format. But you still get a base to adjust from, and that’s useful as well.

As with most tips, it’s one of those things that you’ll either like or find completely useless depending on how you work. Personally, I find it great for when I want to do some coloring work or I’m creating artwork based on colors of a picture I like.

divider here

Comments: 12

1default avatar Donna | Mon November 13, 2006 at 08:08 am

Thank you!!!! I have been scouring the internet looking for a way to do this! I even asked the old graphics teacher I had. This is really too perfect! Thank you!

2default avatar fere | Wed November 22, 2006 at 03:25 am

you were right… so easy and simple
thanx so much!
xoxo

3default avatar Kun | Sun December 17, 2006 at 09:09 pm

thank you so much!!!
there is one more step: uninstall my color picking softer for good :P

4default avatar Romain | Sun December 24, 2006 at 08:39 pm

What a wonderfull tutorial :) I’ve always wondered how to get colors easily, especially for gradients maps works !

Being a colorblind, it’s sometimes difficult, you saved my digital life. Thanks !

5default avatar Sabrina | Tue January 23, 2007 at 08:32 am

Thanks so much for the fast and easy tutorial. it was a big help. You do great work. :D

6default avatar Jamuko | Wed February 07, 2007 at 01:30 pm

Awesome, this is amazingly useful. *_*

For those living in the Photoshop stone ages like me (that is, PS5), the method of doing this is slightly different, but just as easy - I’ve figured out how.

Instead of File > Save for Web, we PS5ers need to go to Image > Mode > Indexed Color. This sets the mode for saving as GIF, but it also does exactly what this tutorial aims for - creating the swatches. The menu is a bit different, and I couldn’t find any Perceptual or Selective modes, but Adaptive is there along with the choice for number of colors, and those do the job. ^^

Thanks for the useful and easy tip!!

7default avatar Maddie | Mon February 12, 2007 at 09:15 am

Thank you so much for this tutorial!

8default avatar Daniel | Sun July 01, 2007 at 07:45 pm

This is a really good tutorial :] Really helpful when you like the colour scheme of a certain picture and want to apply it to say..a layouts colour scheme.
Thankyou

9default avatar Janine | Mon August 06, 2007 at 06:27 am

You are like my favorite person ever! Thank you so much for sharing how to do this. I would have never figured this out otherwise. Coloring for layouts is going to be so much easier! Great tutorial, very easy to follow, which is always great. All of your resources are great! Thank you so much for sharing!

10default avatar Sonia | Thu September 13, 2007 at 08:07 pm

Thank you SO much, this is a fantastic tutorial. I believe that the colourscheme of a website is one of the most important things when it comes to designing them; &this’ll make it so much easier in the future! I like… love you!

11default avatar Carol | Sun October 21, 2007 at 07:16 am

Awesome! I think I love you!

12default avatar sabrina | Wed March 05, 2008 at 06:12 am

Awesome tutorial!! Just one thing- for PSP users, there’s no File, Save as Web. What should we do? =/

Page 1 of 1

Leave a Comment?

Note: Your email address will never be displayed on the site, so you do not need to worry about privacy issues.

Name: *

Email: *

URL:

Remember my personal information
Your Comment: *

Notify me of follow-up comments

* = Required Fields

You are currently not logged in. You may login or register via the sidebar. Why register?

Gravatars are disabled, but member avatars are enabled.

Allow 5 minutes between each post.

Allowed HTML:
<strong>Bold Text</strong>
<em>Emphasized Text</em>
<code>Code Snippet</code>
<blockquote><p>Quote</p></blockquote>