<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Pick a color from an image

Drop a photo, a screenshot or a logo, then click the color you want: you get its HEX, RGB and HSL codes, ready to copy, and the six colors that dominate the image. Free, nothing is uploaded.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Color picker from image

Drop an image here (JPEG, PNG or WebP).

The image is analysed in your browser and never uploaded.

How to use it

  1. Drop or paste an image (JPEG, PNG, WebP or HEIC), or try the example.
  2. Hover over the image to see the zoomed loupe, then click to pick a colour. With the keyboard, focus the image, move with the arrow keys (Shift for 10 pixels) and press Enter.
  3. Copy the HEX, RGB, HSL, HSV or CMYK code. Picked colours stay in the history; the dominant palette is below the image.

Example

Input

Sample image made of six colour bands (“Try an example” button)

Output

#1d3557 (30%), #457b9d (25%), #a8dadc (20%), #f1faee (12%), #e63946 (8%), #f4a261 (5%)

Good to know

  • A JPEG photo has compression noise: neighbouring pixels of a “flat” area can differ slightly. Use the loupe to choose the pixel.
  • Colours are read as the browser displays them, in sRGB. A photo with a wide-gamut colour profile (Display P3) may give slightly different values from a photo editor.
  • The dominant palette groups similar colours: it shows six averages weighted by area, not every shade. Large images are scaled down for this analysis.
  • Transparent pixels are ignored by the palette. Images over 40 megapixels are refused.

Frequently asked questions

How do I pick a color from an image?

Drop the image, hover over it to see the zoomed loupe, then click the pixel you want. Its HEX, RGB and HSL codes appear with a Copy button, and each picked color is added to the history so you can compare several.

How do I get the HEX code of a color in a picture?

Click the color on the image, then “Copy HEX”: you get a code such as #2A9D8F, ready for CSS, Canva or a design tool. On a JPEG, use the loupe to pick a pixel in the middle of the area rather than on an edge.

Is there a color picker built into Windows or Mac?

On a Mac, the Digital Color Meter app (in Utilities) shows the values of any pixel on screen. On Windows, Microsoft PowerToys includes a Color Picker (Win+Shift+C). This page needs no install and also extracts the image’s palette.

How do I pick a color from an image on iPhone?

Open this page in Safari, choose the photo (HEIC photos work too) and tap the color: the HEX, RGB, HSL, HSV and CMYK codes appear below. On a busy photo, pick a 3 × 3 or 5 × 5 average rather than a single pixel.

Why is the color slightly different from Photoshop?

Colors are read in sRGB, as the browser displays them; a photo with a wide-gamut profile (Display P3) may give slightly different values in an editor. JPEG compression also makes neighboring pixels of a flat area differ a little.

What is the dominant palette?

The six colors that cover the most area, each an average of similar shades, with its share of the image. Click one to select it, or copy the whole palette. Transparent pixels are ignored.

← Back to all tools