Color Palette from Image
Drop in a photo to get its colour palette, with the hex code and name of every colour. Click the image to pick any colour from it. Your image never leaves your browser.
Click anywhere on the image to add the colour at that spot. Click a hex code to copy it, or a colour's name to open its page. The percentage is how much of the image that colour covers.
/* Add an image to get started */
How to get a color palette from an image
Drop a photo onto the box, click to choose a file, or paste an image from your clipboard. The palette appears straight away: by default the five colours that best cover the image, ordered from dark to light. Use the slider for anything from three to eight colours. Each colour shows its hex code, the name of the nearest named colour, and how much of the image it covers. Click a hex code to copy it.
Pick any color from the image
The tool also works as an image color picker. Click anywhere on your photo and the colour at that spot is added to the palette, so you can grab the exact shade of a logo, a sky or a piece of clothing that the automatic palette left out. Remove any colour you do not want with the × beside it.
How the colors are found
The pixels are grouped into clusters of similar colour in OKLab, a colour space where distance matches what the eye sees. Clusters that a person would call the same colour are merged and tiny specks are dropped. The palette then starts with the colour that covers the most of the image and adds the ones that differ most from those already chosen, so a photo of the sea gives you the blue, the sand and the sunset, not five blues.
Your image stays on your device
The photo is read by your browser and never uploaded, so the tool is safe to use with client work, unreleased designs and personal photos. It works with PNG, JPG, WebP and GIF files.
Use the palette
Copy the colours as CSS variables, Tailwind (v4 or v3), SCSS, JSON or an array, or download a PNG of the image with its palette underneath. Open the palette in the Color Palette Generator to lock colours and build on them, or turn the same photo into a gradient with Gradient from Image. Every colour name links to its page: browse colour names A–Z or convert codes in the Color Converter.
