Skip to content
Free tool

Image Color Picker: Extract color codes from images

The Image Color Picker is an online eyedropper: upload a photo or paste a screenshot, click a pixel, and get its HEX, RGB, and HSL color codes, along with the closest CSS color name and the image’s color palette. For example, the sun in the sample image is #ffd166, or rgb(255, 209, 102). Free, no sign-up or upload to a server: your image stays in your browser.

Built by Dimitri Heissler

Building something of your own? Host it on a VPS with full control.

Drag an image here or select one

PNG, JPG, WebP, AVIF, GIF, BMP, and SVG, including paste from the clipboard with Ctrl+V. The image stays in your browser.

Selected color

No color selected yet. Upload an image and click a spot on it. You'll see its HEX, RGB, and HSL values immediately.

Image color palette

The most common colors in the image, sorted by share. Click a color to select it.

Your image’s palette will appear here as soon as you upload it.

History of selected colors

Every color you click appears here. The history stays in this tab and is not saved.

No colors selected yet.

Example result

What this Image Color Picker shows you

Upload an image and click a spot. You'll instantly see that pixel's color in HEX, RGB, and HSL, along with a magnifier, text contrast, and a palette of the most common colors in the entire image. Two examples using the tool's sample image:

Example 1: Pick a color from the image

Input:

Sample image “Sunset” at 160 × 100 pixels, click pixel X 112, Y 56 in the middle of the sun, averaging over 1 pixel.

Output:

Values of the selected color in the first example
HEX#ffd166
RGBrgb(255, 209, 102)
HSLhsl(42.0, 100.0%, 70.0%)
CSS variable--color: #ffd166;
Closest CSS color namekhaki (#f0e68c)
Black text14.56:1, AAA, very easy to read
White text1.44:1, Not enough contrast

Result in words: The sun's color is #ffd166, or rgb(255, 209, 102). That’s a light yellow (hue 42°, saturation 100%, lightness 70%). The closest CSS color name is khaki, but that’s only an approximation; the exact value is in the hex code. Black text is much easier to read on this color.

Example 2: The palette of the entire image

Input:

The same sample image, palette with 8 colors.

Output:

Sample image palette, sorted by proportion
ColorRGBShare
#08203a8, 32, 5820.0 %
#0f3b5f15, 59, 9520.0 %
#1b2a5b27, 42, 9115.0 %
#6b3f7a107, 63, 12215.0 %
#c4566b196, 86, 10713.8 %
#f26b38242, 107, 5610.1 %
#ffd166255, 209, 1024.8 %
#14151f20, 21, 311.3 %

In words: The image consists of 8 color areas, and the palette finds them all. The largest is the dark ocean blue #08203a at 20.0 %; the sun, #ffd166, covers 4.8 % of the area. “Copy HEX list” copies all the values, while “Copy CSS variables” gives them to you as --color-1 through --color-8.

How it works

How to get a color code from an image

Four steps from image to copied color value—no account, no download.

Step 1

Load image

Drag an image into the box, choose a file, paste a screenshot with Ctrl+V, or load the example image. The image opens only in your browser and is not sent anywhere.

Step 2

Choose color

Move your mouse over the image: the magnifier shows individual pixels. Click to select a color, or tap a spot and drag your finger on a phone. Use the arrow keys to move the selection one pixel at a time.

Step 3

Copy values

The tool displays the color as HEX, RGB and HSL, plus a ready-to-use CSS variable. Click “Copy” to copy the value to your clipboard. For noisy photos, average over 5 × 5 or 11 × 11 pixels.

Step 4

Use palette and contrast

Below the image, you’ll find a palette of the most common colors and their proportions, which you can copy as a HEX list or CSS variables. The contrast indicator shows whether black or white text is easier to read on the selected color.

Use cases

Find a color code: four ways to use the color picker

If you're looking for a color code, you probably have an image, screenshot, or website in front of you. The color picker covers all four methods.

Color code from an image

Open the photo or graphic, move the eyedropper over it, and click a spot. You can copy the color code as HEX, RGB, or HSL.

Color code from a screen or website

Take a screenshot and paste it with Ctrl+V. Click a color to see its color code, whether it comes from a website, app, or game.

Color palette from an image

Below the image, you’ll find a palette of the most common colors and their proportions. Select 2 to 12 colors and copy them as a HEX list or CSS variables.

The color of a noisy photo

In photos, a single pixel often differs from the color you see. Averaging over 5 × 5 or 11 × 11 pixels gives you a stable average.

The right choice

Which color tool is best for which task?

Four color tools for four different questions: choose the one that fits your task.

Image Color Picker (this page)

Have an image and want to know the color at a specific spot or which colors dominate it?

Color Picker

Already have a color and want to convert it between HEX, RGB, HSL, HSV, and CMYK?

Contrast Checker

Want to check whether text in a given color is readable on a background according to WCAG?

Discover more

More tools

Compress & resize images

Compress and resize images online: reduce JPG, PNG, and WebP file sizes, set a target size in KB, or convert formats, such as PNG to JPG. Runs entirely in your browser.

Built by Dimitri Heissler

Color Picker

Convert colors between HEX, RGB, HSL, HSV, and CMYK in real time, find the closest CSS named color, and check WCAG contrast against black and white—all in your browser.

Built by Justin Schuessler

Color Scheme Generator

Generate complementary, analogous, triadic, and other color schemes live from a base color—nothing is stored or transmitted.

Built by Justin Schuessler

Contrast Checker

Calculate the WCAG contrast ratio between two colors live and check it against AA/AAA standards and UI components—all in your browser.

Built by Justin Schuessler

Color Blindness Simulator

Simulate live how color palettes and your own images appear to people with protanopia, deuteranopia, tritanopia, and achromatopsia—all calculated in your browser.

Built by Justin Schuessler

Favicon Generator

Generate a complete favicon set from any image—favicon.ico, Apple Touch icon, Android Chrome icons, site.webmanifest, and a ready-to-copy HTML snippet—all in your browser.

Built by Jakub Martyniak

Was this tool helpful?

Your feedback helps us prioritize and improve content.

FAQ

Frequently asked questions about the Image Color Picker

Quick answers about color codes from images, color palettes, and this tool.

How do I find the color code (HEX, RGB) of a color in an image?

Load the image into the Image Color Picker and click the spot whose color you need. The tool instantly shows that pixel's HEX code, RGB value, and HSL value. Use “Copy” to copy the value. Clicking the sun in the example image gives #ffd166. In a HEX code, each pair of digits represents red, green, and blue (ff = 255, d1 = 209, 66 = 102), so #ffd166 is rgb(255, 209, 102) and hsl(42, 100%, 70%).

What is an online eyedropper tool, and do I need an app?

An eyedropper, also called a color picker, samples a color at a point and returns its color code. This Image Color Picker works online in your browser, including on your phone—no app needed. On your phone, tap a point and drag your finger; the magnifier shows the pixels beneath it. With a keyboard, use the arrow keys to move the selection by 1 pixel (or 10 with Shift), and press Enter to save the color to your history.

Is my image uploaded or stored?

No. The image is placed on a canvas in your browser and analyzed there. Nothing is uploaded or stored, and your selected color history stays in this tab. You can check the Network tab in your developer tools: loading and clicking generate no requests.

How do I get the HEX code of a color from a website or my screen?

Take a screenshot (Windows: Windows+Shift+S; Mac: Cmd+Shift+4, with Ctrl to copy to the clipboard) and paste it into the tool with Ctrl+V (Mac: Cmd+V). Then click a spot and copy its color code. This lets you pick colors from a website, app, or game without a browser extension.

Why does the color value differ from Photoshop, Figma, or a screenshot?

There are four common reasons. First, JPG images use lossy compression, so neighboring pixels can differ slightly. Second, the browser may convert embedded color profiles (such as Display P3) to sRGB, while other programs show the raw value. Third, a screenshot shows the color after your display’s color management. Fourth, the tool analyzes images over 36 megapixels at a reduced size. For photos, set averaging to 3 × 3, 5 × 5, or 11 × 11 pixels: the tool then averages 9, 25, or 121 pixels around the pointer instead of sampling an outlier. For solid colors, such as those in a logo, “1 pixel” is the right choice.

How do I create a color palette from an image?

Load the image to see the palette directly below it. Choose 2 to 12 colors and see each one's HEX code and share of the image. To do this, the tool samples at least 90,000 evenly distributed pixels (smaller images in full), skips transparent pixels, and groups colors using the median cut method. For photos, the palette is an approximation. “Copy HEX list” gives you a list; “Copy CSS variables” gives you lines such as --color-1: #08203a; for a :root block, which you can use with var(--color-1).

How can I find a color's name, and does the tool provide RAL or Pantone codes?

Alongside the color values, the tool shows the matching CSS color name or, if there is no exact match, the closest CSS color name and its HEX value. For #ffd166, that is khaki (#f0e68c), so it is only an approximation. The tool does not provide RAL, Pantone, NCS, or CMYK values. Screen colors also depend on lighting and the camera, so always check wall paint or other paint against a physical color sample. The Color Picker shows HSV and CMYK for a known color.

Which text color is easy to read on the selected color?

The tool calculates the color’s WCAG contrast ratio against white and black. Normal text needs at least 4.5:1 (AA); 7:1 (AAA) is excellent, while large text needs 3:1. On #ffd166, black text achieves 14.56:1, but white text only 1.44:1. To check any two colors, use the Contrast Checker.

Which file formats does the tool support, including transparent PNGs?

PNG, JPG, WebP, AVIF, GIF, BMP, and SVG, depending on what your browser can read. For GIFs, the first frame is analyzed. HEIC and HEIF files, as saved by iPhones, can only be opened in Safari; otherwise, export the photo as a JPG first. Files can be up to 40 MB. For semi-transparent pixels, the tool also shows the HEX value with an alpha channel, for example #ff000080. Fully transparent pixels have no color, and the tool will let you know.

Still have questions?

Contact Support
Building something of your own?

Your website needs a server that reliably serves its images and colors

A ZAP-Hosting VPS reliably puts your application or project online.

4.6/5 Google32,000+ Active serversSince 2010

No setup. No risk. Online in 60 seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all image and design tools