Color Palette Extractor
Choose or drop an image to estimate its dominant colors. Request 4, 6, 8, 10 or 12 swatches, sort by frequency or brightness, and copy individual HEX values or the entire palette.
The image is drawn to a 100×100 Canvas. Each channel is rounded to steps of 16, capped at 255. Fully transparent pixels are ignored; remaining pixels are counted by quantized color. Colors within a summed RGB distance below 48 of an earlier swatch are skipped.
A solid-red image produces one #FF0000 swatch, rgb(255, 0, 0), 100%, even when eight colors are requested. A fully transparent image produces a useful error instead of an opaque black palette.
Method and limits
Counts and rounded percentages describe visible sampled pixels, not original full-resolution areas. Partial alpha uses uncomposited RGB. Similarity filtering and the size limit can omit colors, so displayed shares need not total 100%. Brightness sorting uses the channel sum. The built-in sample is illustrative.
The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder.
Drop image here
or click to browse
Illustrative sample; percentages do not describe an uploaded image.
Copied
Copy failed. Select the result and copy it manually.
About Color Palette Extractor
Drop in a photo, screenshot or logo and this extractor pulls out its dominant colors as swatches with HEX and RGB values and each color’s approximate share of visible pixels in the downscaled sample. It samples the picture on a canvas, buckets similar shades together and drops near-duplicates, so a palette with at most the selected 4, 6, 8, 10 or 12 distinct colors comes back sorted by frequency or brightness. Designers reach for it to pull a scheme out of a reference image. The file stays on your machine; sampling happens in the browser. The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder.
Choose or drop an image to estimate its dominant colors. Request 4, 6, 8, 10 or 12 swatches, sort by frequency or brightness, and copy individual HEX values or the entire palette. The image is drawn to a 100×100 Canvas. Each channel is rounded to steps of 16, capped at 255. Fully transparent pixels are ignored; remaining pixels are counted by quantized color. Colors within a summed RGB distance below 48 of an earlier swatch are skipped.
A solid-red image produces one #FF0000 swatch, rgb(255, 0, 0), 100%, even when eight colors are requested. A fully transparent image produces a useful error instead of an opaque black palette.
The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder.
Use Cases
How to use
Drop a photo onto the Drop image here box or click it to browse for an image file; you can also press Load Sample to see a demo palette first.
Choose 4, 6, 8, 10 or 12 as the maximum number of distinct swatches.
Read each HEX/RGB card and its approximate share; click a card or strip to copy one HEX value.
Click any card, or any band in the proportional colour strip above them, to copy that single HEX code.
Press Copy All to copy the whole palette as one HEX code per line, or Change Image to start over with a different picture.
Drop an image or click the file area; Load sample shows illustrative values without a source image.
Sort by frequency to inspect dominant colors, or brightness to compare lighter swatches.
Use Copy all for one HEX per line, or Change image to clear the palette before a new selection.
Pro Tips
- Drop an image or click the file area; Load sample shows illustrative values without a source image.
- Copy refused. Select the visible value and copy it manually.
- Counts and rounded percentages describe visible sampled pixels, not original full-resolution areas. Partial alpha uses uncomposited RGB. Similarity filtering and the size limit can omit colors, so displayed shares need not total 100%. Brightness sorting uses the channel sum. The built-in sample is illustrative.
- The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder. Use Copy all for one HEX per line, or Change image to clear the palette before a new selection.
- Combine the Color Palette Extractor with other tools on this site (formatters, converters, encoders) to build complete data pipelines without leaving your browser.
- The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder.
Troubleshooting
Choose an image the browser can decode.
The image or sampled pixel is fully transparent; choose visible pixels.
Why are fewer colors shown than requested?
Palette size is a maximum. A solid color has one swatch; quantization and similarity filtering merge nearby colors. Hidden colors are not redistributed, so percentages may sum below 100%.
Frequently Asked Questions
Image sampling uses browser code without a provider API key. Site access, account, advertising and consent conditions remain separate.
The selected file path uses FileReader and Canvas in the page; it contains no image-service request. This source observation is not a privacy audit of the surrounding site. Clipboard access can fail, and image format support depends on the browser decoder.
Image decoding and available memory depend on your browser and device. Sampling uses a 100×100 canvas after decoding; this does not guarantee that arbitrarily large files can be opened.
Copy HEX/RGB colors for your project. The tool provides color values and does not change any conditions attached to the source image.
Image calculations use code loaded in the browser. Continued offline availability depends on the required resources remaining available; a guaranteed offline mode is not provided.
The image-sampling path makes no image-provider request. Browser decoding and memory limits still apply, separately from the site’s access conditions.
Palette size is a maximum. A solid color has one swatch; quantization and similarity filtering merge nearby colors. Hidden colors are not redistributed, so percentages may sum below 100%.
Fully transparent pixels are ignored; an image with no visible pixels ends with a transparency error. Partially transparent pixels retain their RGB channels without a background blend. Decode errors stop loading and clear stale results.