Image Tools
Color Picker from Image & Palette Extractor
Click anywhere on an image to get the exact HEX and RGB color, and extract its dominant color palette — for designs, brands and websites.
How to use
- 1Upload an image and click any point to pick its color.
- 2See the dominant palette below and click a swatch to copy it.
How it's calculated
The palette uses k-means clustering on a sample of the image's pixels to find its main colors, sorted by how much of the image they cover.
Frequently asked questions
How accurate is the picked color?
It reads the exact pixel you click. Photos have noise, so nearby pixels may differ slightly — the magnifier helps you aim.
How many palette colors should I use?
5–6 colors usually capture an image well: a couple of dominant tones plus accents.
Is my image uploaded?
No — everything is processed in your browser.
Why the picked color and the palette use different methods
Clicking a point on the image reads that exact pixel's RGB value straight from the full-resolution canvas — no averaging, no estimation, just the literal stored color at that coordinate. The palette below works completely differently: it downsamples the image to a maximum of 120px on the long side and runs k-means clustering on that smaller sample, grouping similar colors together and reporting each cluster's average color and its share of the image. Downsampling first is what keeps clustering fast even on a huge original photo, since the six dominant color groups in a shrunk copy are essentially the same as in the full image.
Why the same palette comes out the same way every time
Classic k-means normally starts from random initial cluster centers, which can give slightly different results on repeated runs of the same image. This implementation avoids that by sorting all sampled pixels by luminance first and picking evenly spaced starting points along that sorted list — a deterministic version of k-means++ initialization — so running the same image through twice reliably produces the same palette rather than a slightly different one each time, which matters if you're comparing or re-checking a result later.
What gets filtered out of the palette, and why
Before clustering, any pixel with meaningful transparency is excluded entirely, so a logo on a transparent background doesn't have its 'color' diluted by invisible alpha pixels. After clustering, any color cluster covering less than 0.5% of the sampled pixels is dropped from the results — a tiny sliver of an unusual color (a single stray highlight, a small logo detail) won't crowd out the genuinely dominant tones the palette is meant to surface.
Example: pulling a brand palette from a product photo
Say you're designing a landing page around a product photo and want colors that feel cohesive with it rather than picked arbitrarily. Upload the photo and the palette panel immediately surfaces its 5–6 dominant colors sorted by how much of the image they cover — typically a couple of large background or product tones plus smaller accent colors. Click the picked-color swatches to copy their HEX codes directly into your CSS, giving you a palette that's visually grounded in the actual photo rather than guessed from memory.
The palette skips pixels that are almost transparent
The drop hint says the image stays on your device. Until you click, the side panel says no color picked yet. A click reads that pixel and shows HEX, RGB, and HSL, each with a copy button, and it keeps up to twelve distinct picks. The dominant palette aims for six colors, drops any that cover less than half a percent, and shows each share as a whole percent. Pixels that are more than about half transparent are ignored, so a clear background is not a color. If nothing opaque remains, the palette is empty. The picture is shrunk so the long side is about 120 pixels before those colors are chosen. Copy all joins the palette as a comma-separated list.
Related tools
- Colour Blindness Simulator for Images
See how a chart, map, design or photo looks with red-green (protan, deutan), blue-yellow (tritan) or no colour vision, at mild to full severity, using the Machado (2009) model. Compare side by side and download the simulations. Runs in your browser.
- Motion Photo Video Extractor (Google Pixel, Samsung)
Get the short video out of Android motion photos (Google Pixel Top Shot and Motion, Samsung Motion Photos and others) as an MP4, or save the photo without its video to make it smaller. Batch many at once; nothing is uploaded.
- Photo Editor (Filters, Brightness, B&W, Sepia)
Edit photos online — brightness, contrast, saturation, warmth, blur, sharpen, black & white, sepia, invert and vintage presets — then download.
- Make Background Transparent / Replace a Color
Click a color to make it transparent — perfect for logos and product shots on plain backgrounds — or replace it with another color. Adjustable tolerance.
- Random Color Generator
Generate random colors with HEX, RGB and HSL codes — any color, pastel, dark, vivid or grayscale — for design inspiration and games.
- Extract Images from PDF
Save every picture embedded in a PDF as PNG or JPG files — at their original resolution — downloaded together as a ZIP.