Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Patrick Cole
Patrick Cole
5,189 Points

Is there a way to get the exact numerical color codes from an image?

I would like to get the exact color scheme from a certain image to use for the header of my website. Is there a program or some software where I can put the image in and find out the color to input for the HTML?

I'm talking about these codes - #??????.


Logan Wu
Logan Wu
10,792 Points

Photoshop has that function which you use the pointer (shortcut: i) to point at the place where you want to get the color from and double click that color to get the Hexadecimal value.

You can also try for trying out different color combinations: Adobe Color CC

1 Answer

Colin Marshall
Colin Marshall
32,861 Points

The "eyedropper" tool is pretty much a universal feature in image editing software. It will give the color of whatever pixel you click with it. Photoshop, Gimp, etc. all have this feature.