Image Color Picker – Get HEX, RGB and HSL from a Photo

Find the exact color of any pixel in a picture: upload an image, click the spot you care about, and get its HEX, RGB and HSL values with one-click copy.

100% In-Browser Privacy — Zero Server Uploads

Drop an image here, paste it, or choose a file

JPG, PNG, WebP, GIF, BMP and AVIF. Click any pixel to sample its color. Your image never leaves this browser — nothing is uploaded.

This picker samples a single color at a time — the one under your cursor — so you get the precise value for a logo, a button, a wall or a sky. Everything runs in your browser, so your images are never uploaded.

How to Use Image Color Picker Online

Picking a color takes three quick steps: add your picture, click the pixel you want, and copy the value. There is nothing to install and no account to create, and the tool works the same way on a phone as on a computer.

Prepare Input Files or Images

Click "Choose an image" to pick a file from your device, drag it onto the drop area, or copy an image and paste it straight into the page. JPG, PNG, WebP, GIF, BMP and AVIF files are accepted, and each file must be under 25 MB. For the most accurate sampling, use the highest-resolution version of the image you have — a small, heavily compressed photo blurs colors together at the pixel level.

Choose Settings and Preview Changes

There are no settings to choose: move your cursor over the image to preview the color under it (the hover readout shows the HEX value and the pixel position), then click to sample it. The sampled color appears as a large swatch with its HEX, RGB and HSL values, the exact pixel coordinates, and a copy button for each format. Recently sampled colors stay in a history row — click one to show it again.

Download and Verify the Output

There is nothing to download: the color values are the output, and the copy buttons put them straight on your clipboard. Verify a sampled color by pasting the HEX code into your design tool or a CSS file — the swatch on this page should match what you see there. If the color looks off, click a neighbouring pixel: JPG compression shifts individual pixels slightly, so sampling two or three nearby pixels and comparing them is good practice.

Image Color Picker: Editing Controls and Preview Options

The picker has one control — the image itself. Hovering previews colors live without committing; clicking samples one pixel and locks it in as the current color. The history row keeps your last eight sampled colors, most recent first, so you can compare candidates or re-copy one without re-clicking. Partly transparent pixels are reported honestly: the value shown is the pixel composited on white, with the alpha value noted.

For most jobs, sample from a flat area of solid color rather than an edge or a gradient — edges blend two colors and gradients change pixel by pixel, so the "exact" value there depends on where exactly you click. For a logo color, click the middle of a letter or shape; for a background, click the middle of the flat area. Sample the same spot twice from a PNG original when the value must be exact.

Image Color Picker: Examples and Use Cases

People pick colors from images for everyday jobs: matching a website button to a logo, finding the paint color of a wall in a photo, grabbing a brand color from a screenshot, or naming the exact shade of a product photo. A designer rebuilding a page from a screenshot samples each element's color one at a time; a developer checking a mockup samples the background to write the matching CSS.

Real Input and Output Example

Take a photo of a red sign on a white wall. Clicking the middle of the sign samples something like #D92B2B — rgb(217, 43, 43), hsl(0, 67%, 51%) — while clicking the wall samples near-white, perhaps #F4F4F4. Pasting #D92B2B into a stylesheet reproduces the sign's red exactly. Clicking the boundary between sign and wall would sample a blended pink, which is why flat areas give the truest values.

Supported Formats, File Sizes and Browser Limits

The picker accepts JPG, PNG, WebP, GIF, BMP and AVIF uploads. PNG and WebP give the most exact samples because they are lossless; JPG samples can vary by a few values per channel because of compression. Very large images are scaled down for display (up to 1600 px per side) so sampling stays fast — the colors are read from the image itself, and the displayed size is noted when scaling applies. Individual files over 25 MB are rejected, and images over 8,192 pixels on a side are not supported.

Image Quality, Size and Compatibility Checks

The color you sample is the color in the file, not the color on your screen — monitor calibration can make the same HEX value look different on two displays. If a sampled value looks wrong, check that you clicked the right pixel: the coordinates are shown next to the result, and hovering shows the live value before you click. Transparency is composited on white for sampling, and the alpha value is reported when a pixel is partly transparent.

Common Image Color Picker Problems and Fixes

Most problems come from the source image. A file that refuses to load is usually an unsupported type or a damaged file — the tool names the file and says what is wrong. A color that looks wrong is usually a neighbouring-pixel issue: click a flat area, not an edge. If the copy button does not seem to work, your browser may have blocked clipboard access — the values are also shown as text, so you can select and copy them by hand.

Troubleshooting Upload, Preview or Export Issues

If the image looks washed out or the colors seem shifted, the file may carry an unusual color profile — the browser renders it as best it can, and the sampled values follow the rendered pixels. If clicking does nothing, make sure the image has finished loading (the status line says when it is ready). If you need the whole color scheme of an image rather than one pixel, use the Generate Color Palette From Image tool instead.

Generate Color Palette From Image, Image Resizer, Crop and Resize Image, All Image Tools.

Frequently Asked Questions About Image Color Picker

Mobile Support, File Privacy and Download Options

This page works in any modern mobile or desktop browser with JavaScript enabled: tap "Choose an image" to pick a photo from your phone, or drag a file in on a computer. On touch screens, tap the image to sample a pixel. Your pictures are processed locally and never uploaded, and they disappear when you close or refresh the page.

How do I pick a color from an image?

Upload the image, then click (or tap) the exact pixel whose color you want. The tool shows the color as a swatch plus its HEX, RGB and HSL values, with a copy button for each format. Hovering over the image previews the color under your cursor before you click.

What is the difference between the color picker and the palette tool?

The picker samples ONE color — the pixel you click — for when you need an exact value. The palette tool extracts a whole MULTI-color palette (5–8 colors) from the image automatically, for when you want the overall color scheme. Use the picker for precision and the palette tool for inspiration.

Why do two clicks next to each other give different colors?

Because neighbouring pixels really are different colors — especially in photographs and JPG files, where compression and sensor noise vary pixel by pixel. For the truest value, click the middle of a flat area of solid color rather than an edge or a gradient, and compare two or three nearby samples.

What do HEX, RGB and HSL mean?

They are three ways of writing the same color. HEX (#D92B2B) is the six-digit code used in CSS and design tools. RGB (rgb(217, 43, 43)) lists the red, green and blue amounts from 0 to 255. HSL (hsl(0, 67%, 51%)) describes hue, saturation and lightness, which is the most intuitive form for adjusting a color by hand.

Are my images uploaded to a server?

No. Sampling happens entirely in your browser. Your images are never sent to a server, never stored, and disappear when you close or refresh the page.

Sample solid areas before chasing a one-pixel difference

Use the image color picker in the middle of a flat region first. Anti-aliased text or JPEG boundaries can have varied colors that are hard to see. Click a few nearby pixels before using a sampled value as a brand color.

Image color picker with a synthetic card ready for sampling.
Image color picker with a synthetic card ready for sampling.

Choose a color notation that matches your workflow

The image color picker represents the sampled color as HEX, RGB and HSL. Use HEX when a brand guide gives codes, or HSL when you want to adjust saturation while keeping the same approximate hue. Compositing a partially transparent pixel over a different backdrop can change the displayed color.

MDN explains equivalent HEX, RGB and HSL color values.

Example