Drop your photo
Any image with color in it.
Drop any photo and get its dominant colors broken down into a palette, each one with its hex and RGB code and how much of the image it covers, ready to copy individually or grab as a block of CSS variables.
Any image with color in it.
From 2 up to 10 swatches.
Each swatch's hex and RGB, or the whole palette as CSS.
A sunset, a product photo, a piece of art — every photo is really just a huge number of individual colors, far too many to use directly in a design. This tool groups those colors down into a small, representative palette using a color quantization method called median cut: it repeatedly splits the image's colors into smaller and smaller groups by their widest range, until it's left with exactly the number of swatches you asked for, each one the average of the colors in its group.
Every swatch in the result comes with its hex code and RGB value ready to copy, plus the percentage of the image's pixels it represents, so you can tell at a glance which colors are dominant and which are just a small accent.
Beyond copying individual codes, the whole palette is also available as a block of CSS custom properties, so you can paste it straight into a stylesheet and start referencing the photo's colors by variable name.
A simple photo with one or two dominant tones might only need 3 or 4 swatches to capture it well; a busy, colorful image benefits from more, up to the 10 this tool allows. Try a couple of values and see which one actually reflects the photo.
Your photo is analyzed entirely in your browser, pixel by pixel. Nothing is ever uploaded.
More utilities that also run without leaving your browser.