Image Colour Palette Extractor
Make a color palette from a photo. Find the colors that give it its look, then copy their HEX or RGB codes for your own design.
Choose images and find their colors
Choose one image or merge up to six JPEG/PNG images, then select Extract palette. Swatches and exports stay in this browser. Each file may be up to 15 MiB, 20 megapixels and 8192 pixels per edge.
Zero tolerance removes exact RGB matches. Larger tolerances use RGB distance; matching pixels are removed before clustering. Composite mode compares colors after blending.
Images stay in memory until reload. Each preview has a longest edge of at most 256 pixels; merged regions are deterministically thinned to at most 65,536 sample pixels in total. Browser decoding and resampling can vary. Images, profiles and metadata are not exported.
How to use the colour palette extractor
Choose 1–6 JPEG or PNG images, or try the single example button. Choose 3–12 colors and select Extract palette. The same percentage region applies to every image; extraction uses the bounded analyzed previews. Ignore an exact background RGB color or increase its tolerance to remove nearby colors. Select Retain under any swatch to preserve it exactly in the next extraction, then extract again. An image with only a few distinct colors may return fewer swatches.
Choose how transparency looks
Ignore mode leaves fully transparent pixels out and gives partly transparent colours less weight. Composite mode blends the image over your chosen background, so you can sample how it looks on a solid surface.
Copy or save your palette
Name your swatches, sort by share, luminance or hue, and inspect ordered pairs that meet your selected contrast target. Copy hex codes or passing pairs. Download JSON for sampling settings and shares, named CSS variables, an RGB ASE palette, Tailwind config JSON or Tailwind theme CSS. Gradient stops follow the selected order. Names are converted to safe unique variable keys. Changing settings marks the old palette as outdated and disables exports until you extract again. Clear offers one Undo for images and settings. Cancel stops the owned worker.
Example: match a poster to a photo
Choose a holiday photo and request six colours. Extract the palette, then copy a colour for your poster background and another for an accent. The percentages show roughly how much each colour contributes to the analysed sample.
A plain red image returns one red swatch even if you request six. A fully transparent image has no visible colours in Ignore mode; choose Composite over white to get a white swatch.
About image colour palettes
A palette is a small set of colours that represents an image. It can help you coordinate slides, websites, posters and illustrations.
This tool groups similar colors from previews with a longest edge of 256 pixels. Selected regions from merged images are deterministically thinned to at most 65,536 pixels in total. Merged images contribute according to their sampled pixels. Retained colors remain exact and pixels are assigned to the nearest resulting swatch; absent retained colors can have zero share. Results are approximate and can vary with browser decoding and resizing. Shares describe the sample, not exact original pixels. Profiles and image metadata are not preserved.
A frequent colour is not always the best accent or a readable text colour. Check your chosen text and background together before using them. Images and Undo data stay in memory and disappear when you refresh.
Stars and feedback
Loading…
What could we improve in Colour palette extractor?
Email us feedback@tooltulip.com
Tool reference #057