IMAGE TOOL

Image Color Picker — sample any pixel, extract a palette

Upload an image, click anywhere on it to sample the exact color, and auto-extract a dominant color palette — all processed privately in your browser.

PNG, JPG, or WEBP. Product photos, screenshots, and logos all work well.
Drag & drop an image here, or click to browse
100% private: your image never leaves your device. Color sampling and palette extraction both run locally in your browser — nothing is uploaded.
Picked Color
No color yet
Upload an image and click a pixel
–
HEX
–
RGB
–
HSL
–
Pixel position
Tip: images wider than 640 px are scaled down to 640 px on the canvas, and clicks sample that scaled copy. Zoom your browser in before clicking if you need to hit a small detail.

Color History

Dominant Color Palette

Automatically extracted from the whole image using color-bucket quantization.

An image color picker lets you click a pixel in a photo, screenshot or mockup and read its colour as a HEX code, an RGB value and an HSL value. This one also scans the whole image and lists up to eight dominant colours. Both steps run in your browser, so the image is not uploaded.

Matching colour by eye is unreliable, because the same blue can look different on two monitors. Reading the stored pixel value removes that guesswork when you are matching a logo colour for a web page, lifting a background colour from a screenshot or starting a palette from a photo.

What This Image Color Picker Does

Upload an image and it is drawn onto a canvas. If the image is wider than 640 px it is scaled down to 640 px wide first, so every sample and every palette colour comes from that scaled copy, not from the original file. Click or tap the canvas and the tool reads that pixel with the Canvas API getImageData() method, then shows HEX, RGB, HSL and the pixel position, with a swatch and three copy buttons.

Each new colour you pick is added to a history row (up to 20 colours, duplicates skipped, newest first). Separately, the tool builds a dominant palette from the whole canvas as soon as the image loads.

How to Use It

  1. Upload your image. Use the file field or drop a file on the dashed zone.
  2. Click the pixel you want. HEX, RGB, HSL and the x, y position update at once.
  3. Copy the format you need with Copy HEX, Copy RGB or Copy HSL (the buttons sit under the results).
  4. Keep clicking to compare several picks in the Color History row below the tool.
  5. Check the Dominant Color Palette for the image's most common colours, and click a swatch to load it into the results.

How to Read the Result

  • HEX is the same colour as RGB written in base 16, for example #3B82F6. It is what most CSS and design tools expect.
  • RGB gives red, green and blue from 0 to 255. Use it when you need to add an alpha value.
  • HSL gives hue (0 to 360 degrees), saturation and lightness as percentages. Change only the lightness to make a lighter or darker variant of the same colour.
  • Pixel position is x, y on the scaled canvas, counted from the top-left corner. It is not a position in your original file if the image was wider than 640 px.
  • Palette swatches are approximations. Each one is the centre of a coarse colour bucket, so it can be up to 16 levels off per channel from any real pixel. Click-sample the exact pixel when you need a precise brand value.

Example conversions, calculated with the same formulas the page uses:

Example colourHEXRGBHSL
Bright blue#3B82F6rgb(59, 130, 246)hsl(217, 91%, 60%)
Gold#E8A020rgb(232, 160, 32)hsl(38, 81%, 52%)
Dark navy#1B3A6Brgb(27, 58, 107)hsl(217, 60%, 26%)

How Pixel Sampling and Palette Extraction Work

On a click, the tool converts your pointer position into canvas pixel coordinates, allowing for any difference between the canvas size and its size on screen, then calls getImageData(x, y, 1, 1). HEX is the three channel values in base 16. HSL comes from the standard conversion that compares the largest and smallest channel. The MDN documentation on getImageData describes the browser API.

The palette works differently. It reads every fourth pixel of the canvas in order, skips pixels that are mostly transparent, and rounds each channel to the nearest multiple of 32. Pixels that round to the same triple share a bucket, and the eight fullest buckets become the swatches, most common first. For example, (241, 18, 63) and (250, 30, 60) both round to (256, 32, 64). A channel that rounds to 256 is capped at 255 in the swatch's HEX, so that bucket shows as #FF2040. Nothing else is installed or downloaded; the whole method is a short loop in this page's script.

Because buckets are only 32 levels wide, two clearly different but similar shades (a navy and a slightly lighter navy) often land in one bucket and appear as a single swatch.

Sampling Different Image Types

Photographs contain gradients and noise, so clicking a few pixels inside what looks like one flat area will often give HEX values that differ by a shade. Logos and flat graphics use a few solid colours, so repeated clicks inside a shape return the same value. That makes an exported logo file the most reliable source for a brand colour. Screenshots sit in between: interface backgrounds and buttons are usually flat, while photos and icons inside them behave like photographs.

Color, Accessibility and Contrast

A colour also has to stay readable against its background. The W3C's WCAG 2.1 success criterion 1.4.3 (Contrast Minimum) requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large-scale text. After sampling a colour here, test it against your intended background with the Color Contrast Checker before you commit to it.

What to Do Next

  1. Sample from the original, unfiltered file, not a compressed copy, if the value matters.
  2. Click two or three pixels inside the same shape and confirm the HEX values agree. If they do not, the image is a photo or is heavily compressed, so take the middle value or use a source file.
  3. Paste the HEX into your CSS or design tool, then check text contrast with the Color Contrast Checker.
  4. Use the Hex to RGB Converter if you need a format this page does not show.
  5. Treat the palette as a starting mood, then sample the exact pixels for the colours you will actually use.

Known Limits

  • The picker only reads the canvas copy, which is capped at 640 px wide. Fine detail in a very large image is averaged away by the scaling.
  • Clicking a history swatch updates HEX, RGB, HSL and all three Copy buttons; the position box shows a dash because the colour came from history, not a pixel.
  • Palette swatches show bucket values, rounded to multiples of 32 and capped at 255, so they are approximations of the colours in that region.
  • Colour management varies by browser and image profile, so values can differ slightly from what a desktop design application reports for the same file.

Common Mistakes to Avoid

  • Sampling a compressed or filtered image. JPG compression and filters shift colours from the source.
  • Clicking an anti-aliased edge. Boundary pixels are a blend of two colours. Click a few pixels inside the shape.
  • Treating the palette as the brand palette. A photo's most common colours are often background or lighting tones.
  • Skipping a contrast check. An accent colour can fail as text on its background.
Need brand colours applied consistently across a website?

Arb Digital designs and builds websites. Tell us about your project and we will reply within 1 business day.

Our Web Design Services All Free Tools

Related Free Tools From Arb Digital

Check a sampled colour with the Color Contrast Checker, convert it with the Hex to RGB Converter, or prepare assets with the Favicon Generator, the Social Media Image Resizer and the Image Resizer. Browse the free online tools hub for more.

Frequently Asked Questions

Is this image color picker really free?

Yes. There is no account, no watermark and no limit on how many pixels you sample.

Does my image get uploaded to a server?

No. Sampling and palette extraction run in your browser with the Canvas API, and the image is never sent anywhere.

Why does clicking near an edge give an unexpected color?

Pixels on the boundary between two colours are often anti-aliased, meaning they are a blend of both. Click a few pixels inside a solid area for a cleaner sample.

What's the difference between the color history and the dominant palette?

Color history lists the pixels you clicked, newest first, up to 20. The dominant palette is calculated automatically from the whole image as up to eight rounded colour buckets, and it does not depend on your clicks.

Are the palette colors exact?

No. Each swatch is the centre of a bucket 32 levels wide per channel, so it is an approximation. Click the image to read the exact pixel value.

Can I copy the color directly into my CSS?

Yes. HEX and RGB can be pasted straight into CSS colour properties, and HSL works in modern CSS too. Each copy button places the displayed string on your clipboard.

Will this work on a screenshot instead of a photo?

Yes. Screenshots, mockups, logos and photos all work the same way: upload the file and click the pixel you want.

This tool runs in your browser. Your images are not uploaded, stored or sent to any server.

Need help with the next step?

Prefer to hand this off? See how our Web Design & Build work handles it for clients.