Media

Image Color Extractor

Extract dominant color palettes and pick exact pixel colors as HEX, RGB, or HSL locally in your browser.

colors
Image -
Choose image or drop here PNG, JPG, WebP, GIF, or SVG
100% on-device. Files never upload.
Palette -
Your image's dominant colors appear here. Click any swatch to copy it.
Options HEX · ignore extremes · by coverage
How It Works

How to Extract Colors from an Image in 3 Steps

1

Upload or Paste an Image

Drop a photo, logo, or screenshot onto the card, click to browse, or paste from your clipboard.

2

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.

3

Copy or Download

Click any swatch to copy one color, or export the full palette as CSS variables, JSON, or a PNG strip.

Reference

Color Formats & Export Files

FormatExampleBest for
HEX#f4511eCSS stylesheets, design tools, and brand guides
RGBrgb(244, 81, 30)HTML canvas, image editors, and alpha channels via rgba()
HSLhsl(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
.pngSwatch strip with HEX labelsMood boards, slide decks, and quick palette sharing
FAQ

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.

Toolity Media

Explore All Media Tools

Compress, convert, resize, and edit image, video, GIF, and audio files locally in your browser.

Copied to clipboard