Design Tools

Image Color Picker

Pick exact colors from any image and extract its dominant color palette. Your image never leaves the browser.

Drop an image here, click to browse, or paste with Ctrl+VPNG, JPG, WebP, GIF, SVG… Processed locally.

About this tool

Designers and developers often need the exact color of something in an image: a brand color from a logo, a background from a screenshot, or a mood palette from a photo. An image color picker reads the pixel under your cursor and gives you its HEX, RGB, HSL and OKLCH values, ready to paste into CSS or a design tool.

This tool works entirely in your browser. Drop, choose or paste an image and move over it: a magnifier shows the pixels around the cursor so you can hit small details, and a click saves the color. Because photos contain noise and anti-aliased edges, you can average a 3×3 or 5×5 area instead of a single pixel. The tool also extracts the dominant colors of the whole image with a median-cut and k-means algorithm and shows how much of the image each one covers. In Chrome and Edge you can even pick colors from anywhere on your screen.

How to use Image Color Picker

  1. Drop an image onto the page, click to choose a file, or paste a screenshot with Ctrl+V (Cmd+V on a Mac).
  2. Move the pointer over the image and use the magnifier to aim. Choose a sample size of 1 px, 3×3 or 5×5.
  3. Click to pick a color. Its HEX, RGB, HSL and OKLCH values appear with copy buttons, and it is added to Picked colors.
  4. Scroll to Dominant colors, choose how many colors to extract, and copy them as CSS variables.

Examples

Dominant colors with shares

Input
An image that is 60% red and 40% blue, plus a transparent area
Result
#ff0000 · 60%
#0000ff · 40%

Transparent pixels are ignored, so logos on transparent backgrounds give their real colors.

Averaging the sample area

Input
Fine black-and-white checkerboard, sample size 3×3
Result
#808080 (instead of pure black or white)

Picked color formats

Input
A click on a sky-blue pixel
Result
#0ea5e9
rgb(14 165 233)
hsl(198.6 88.7% 48.4%)

How the palette extraction works

The tool samples up to about 40,000 opaque pixels, spread evenly over the image so large photos stay fast. Median cut then repeatedly splits the group of pixels with the widest color range at its median, which gives a good first set of colors. A few rounds of k-means refine those colors so each one sits at the center of the pixels it represents. Colors that end up almost identical are merged.

The result describes what the image is made of, not what a person would call its accent color: a photo of a red flower on green leaves may be mostly green. If you need an accent, increase the number of colors and choose a small but saturated swatch, or pick it directly with the eyedropper.

Getting accurate colors

  • Use the original file rather than a screenshot of it where possible. Screenshots can be color-managed or scaled, and JPEG compression shifts colors near edges.
  • Average a 3×3 or 5×5 area for photos and gradients; use 1 px for flat graphics, icons and pixel art.
  • Colors are read in sRGB. Images with a wide-gamut profile such as Display P3 are converted by the browser, so values can differ slightly from a design tool that works in P3.
  • Pick from screen uses the EyeDropper API, available in Chromium-based desktop browsers. It can read colors from other apps, but only after you click, and the browser shows that it is active.

Frequently asked questions

Everything you need to know about this tool and data security.

Is my image uploaded?

No. The image is decoded and analyzed on a canvas in your browser. Nothing is sent to a server, so it is safe to use with unreleased designs and private screenshots.

Why is the color slightly different from the one in my design file?

Common reasons are JPEG compression, an image exported with a different color profile, or anti-aliasing at edges. Pick from the middle of a flat area with a larger sample size, and export images as PNG in sRGB for exact values.

Can I pick colors from a website or another application?

Yes, in Chrome, Edge and other Chromium-based browsers on desktop: click Pick from screen and then click anywhere on your screen. In other browsers, take a screenshot and paste it into the tool with Ctrl+V.

Is my data safe when using this tool?

Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.