imgmendimgmend

Color Picker from Image
HEX, RGB and HSL — Free

Click a spot on your picture to get its color code, or see the main colors at a glance. No upload.

Color Picker from ImageRuns in your browser. Your photo is not uploaded.

Drop a photo here or click to choose

JPG, PNG, WebP, GIF, BMP or JFIF. Nothing is uploaded.

Last updated: October 2026

How Do You Get a Color Code from an Image?

To get a color code from an image, add the picture to the tool above and click the spot whose color you want; its HEX, RGB and HSL codes appear straight away, ready to copy, and nothing is uploaded.

  1. Add the picture.
  2. Click the color.
  3. Copy the code.

HEX, RGB and HSL: What Is the Difference?

FormatExampleWhat it means
HEX#FF8000Red, green and blue as three two-digit hexadecimal numbers. Common in web design.
RGBrgb(255, 128, 0)The same red, green and blue amounts as numbers from 0 to 255.
HSLhsl(30, 100%, 50%)Hue as an angle on the color wheel, plus saturation and lightness.

Why Does the Color Differ Slightly Each Time I Click?

Photos are made of millions of pixels, and neighboring pixels often differ a little because of light, texture and JPG compression. Click a flat area, or use the main-colors row, which averages groups of similar pixels, for a steadier result. The code is the pixel value stored in the file; it can look a little different on different screens.

What Is the Color Name Shown?

It is the closest match from a list of about 50 common CSS color names, such as red, teal or tan. It is a guide, not an exact name. To change a color in the picture itself, use change image color.

Frequently Asked Questions

How do I find the hex code of a color in a picture?

Add the picture and click the color. The HEX code appears with a Copy button.

How do I get a color palette from an image?

Add the picture. The main colors are shown under the picture, and you can click any of them to copy its HEX code.

Does this work with PNG and WebP?

Yes. It reads JPG, PNG, WebP, GIF, BMP and JFIF files.

Is my picture uploaded?

No. Everything is read in your browser.

Related Tools & Guides