# Colour Palette From Image Extract a harmonious colour palette from any image using median-cut quantisation. Click any swatch to copy its HEX. All processing happens in your browser — nothing is uploaded. Drag & drop an image here, or **click to browse** PNG, JPG, WebP or GIF ### How it works The image is downscaled and its pixels are fed into a **median-cut** quantiser: all colours start in one box, and the box with the widest colour spread is repeatedly split at its median along its longest axis until the requested number of boxes remains. Each box’s average becomes a palette colour, sorted by how much of the image it covers. It’s the same family of algorithm GIF encoders use — and it runs entirely on your device. ## Related tools - [Dominant Color Finder](dominant-color.html) — Main Color of an Image - [Image Colour Picker](image-color-picker.html) — Pick Colours From Any Image - [Contrast Grid](contrast-grid.html) — WCAG Ratios for a Whole Palette --- *Source: [ocxly.com/palette-from-image.html](https://ocxly.com/palette-from-image.html) — OCXLY, free 100% client-side privacy-first tools. Free color palette generator from images. Extract a harmonious palette from any photo with median-cut quantisation, copy HEX or CSS variables, entirely in your browser. Nothing is uploaded.*