Image Color Extractor
Extract dominant color palettes and pick exact pixel colors as HEX, RGB, or HSL locally in your browser.
Click or tap the image to pick a pixel color.
Options
HEX · ignore extremes · by coverage
How to Extract Colors from an Image in 3 Steps
Upload or Paste an Image
Drop a photo, logo, or screenshot onto the card, click to browse, or paste from your clipboard.
Pick the Palette Size
Select 4, 6, 8, or 12 swatches to view HEX codes and coverage shares. Click the image preview to sample any pixel.
Copy or Download
Click any swatch to copy one color, or export the full palette as CSS variables, JSON, or a PNG strip.
Color Formats & Export Files
| Format | Example | Best for |
|---|---|---|
HEX | #f4511e | CSS stylesheets, design tools, and brand guides |
RGB | rgb(244, 81, 30) | HTML canvas, image editors, and alpha channels via rgba() |
HSL | hsl(15, 91%, 54%) | Adjusting lightness or saturation from a base hue |
.css | --color-1: #f4511e; | Ready-to-use custom properties for web stylesheets |
.json | [{"hex":"#f4511e","coverage":0.31}] | Build scripts, theme pipelines, and design plugins |
.png | Swatch strip with HEX labels | Mood boards, slide decks, and quick palette sharing |
Image Color Extractor: Frequently Asked Questions
Is my image uploaded anywhere?
No. JavaScript draws your image onto a local HTML canvas and computes every color inside your browser. Nothing goes to a server.
Which image formats are supported?
You can open PNG, JPG, WebP, GIF (first frame), BMP, AVIF, and SVG files. The tool downscales high-resolution images internally for fast palette analysis.
How do I get the exact color of one spot in the image?
Click or tap anywhere on the preview image to read that pixel as HEX, RGB, and HSL. Click the sampled swatch to copy its value.
Why does the palette not include white or black from my image?
The extractor ignores near-white and near-black pixels by default so backgrounds do not crowd out accent colors. Uncheck "Ignore near-white and near-black" in Options to include them.
How are the dominant colors chosen?
Median-cut quantization groups pixels into your chosen swatch count and averages each cluster. Each percentage badge shows how much image area that swatch covers.
Explore All Media Tools
Compress, convert, resize, and edit image, video, GIF, and audio files locally in your browser.