Extract a color palette from an image
Pull a harmonious palette out of a photo, logo or screenshot. The tool finds the dominant colors with median cut quantization and gives you each one in the format you work with, ready to paste into CSS or a design file.
Tooloat runs in your browser and needs JavaScript. It opens in a moment, and your files are processed on your device.
How it works
- Drop an image.
- Choose how many colors and which format.
- Click a swatch to copy it, or download the palette files.
Why use it
- HEX, RGB, HSL and OKLCH output.
- Percent share for each color.
- Exports a swatch image, JSON and CSS variables.
- Near duplicate shades are merged for a cleaner result.
Questions and answers
How are the colors chosen?
Pixels are grouped by median cut and the most populated groups become the palette. Colors that look nearly the same are merged.
Can I ignore white backgrounds?
Yes. There are options to skip near white and near black pixels, useful for product shots.
Does the image leave my browser?
No, it is analysed locally.
Related tools
- Crop, rotate and flip imagesFrame your pictures for Instagram, a passport photo or a slide.
- Resize imagesMake pictures the exact size you need, whether that is 1080 by 1080 for Instagram, 35 by 45 millimetres for a passport or simply half the size.
- Remove background from imageCut people, products and pets out of their backgrounds, hair and fur included.
- SVG to PNG converterRender vector graphics as sharp raster images at exactly the size you need.