🛝Toolio
All tools

🌈 Color Palette from Image

Drop any image and instantly get its dominant color palette — complete with copyable HEX codes. No uploads, no sign-up, totally free. Everything runs in your browser using k-means color analysis, so your photos never leave your device.

🌈
Drop an image here
or click to select — JPG, PNG, WebP, GIF

About

Color Palette from Image uses k-means clustering — the same technique professional design tools rely on — to find the most representative colors in your photo. Upload a product shot, a landscape, a screenshot, or any artwork and choose between 4 and 12 swatches. Each swatch displays its HEX code and a one-click copy button. Click 'Copy all HEX' to grab the entire palette at once. Supports JPG, PNG, WebP, and GIF. Because the tool runs entirely client-side with no server, it works offline and respects your privacy completely.

How to use

  1. Drop your image onto the upload zone, or click 'Choose image' to select a JPG, PNG, WebP, or GIF file.
  2. The palette is extracted automatically. Use the 'Colors' dropdown to switch between 4, 6, 8, 10, or 12 swatches anytime.
  3. Click any swatch's 'Copy' button to copy its HEX code, or hit 'Copy all HEX' to grab the full palette at once.
  4. Click 'New image' to reset and analyze another photo without reloading the page.

FAQ

Is this tool free to use?
Yes, completely free. There are no accounts, subscriptions, or hidden charges of any kind.
Does my image get uploaded to a server?
No. Your image is never sent anywhere. All color analysis happens inside your browser using the HTML Canvas API, so your photos stay on your device.
Does it work offline?
Yes. Once the page has loaded, you can extract palettes from images with no internet connection at all.
How does the color extraction work?
The tool uses k-means clustering on a downscaled version of your image. It groups similar pixel colors and returns the centroid of each cluster, ordered by how many pixels belong to it — so the most prominent colors appear first.
What image formats are supported?
JPG, PNG, WebP, and GIF are all supported. Transparent areas (with low alpha) are automatically skipped during analysis.