Image Palette Extractor
Extract the dominant colours from any image using k-means clustering. Click any swatch to copy the hex.
100% in your browser — files never uploaded.
Postcrest — full AI image suite
Need more than a converter? AI background removal, upscale, edit and generate — one workspace.
How to use the Image Palette Extractor
- 1Drop your imagePNG, JPG, WebP — anything.
- 2Choose palette sizeFrom 2 to 16 colours.
- 3Click to copyTap any swatch to copy the hex code.
About this tool
All processing happens in your browser via the Canvas API. No server roundtrip, no upload.
Uses k-means clustering on a downsampled grid of pixels — fast and good enough for design work.
Frequently asked questions
Is it free?
Yes — no signup, no watermarks.
Are files uploaded?
No — every step runs in your browser.
How accurate?
Very — 8 k-means iterations on ~12k sampled pixels.
Commercial use?
Yes — palette is yours.
Mobile-friendly?
Yes.
Need more than free tools? Get Postcrest's full AI image suite.
AI background removal, AI upscaling, AI image editor and AI photoshoot — every leading model in one workspace.
AI Image Generator
Every leading model — Flux, Nano Banana, Seedream, GPT-Image, SDXL.
AI Image Editor
Inpaint, outpaint, object removal — describe the edit, AI applies it.
AI Background Remover
Pixel-perfect cutouts in seconds — transparent PNG or any new scene.
AI Image Upscaler
Upscale to 4K, face-aware, print-ready, watermark-free.
Get started — access every AI tool
50% off your first 2 months. Cancel anytime.