PufferKit
HomeImagesDesignPalette from Image
Default
India11
East Asia3
Other Countries3
Buy me a coffee

Palette from Image

Extract dominant color swatches from a photo and copy HEX/CSS tokens or export a palette card.

Drop an image hereJPEG, PNG, WebP, AVIF, BMP, GIF · or paste ⌘V

Loading image engine…

Images are processed in your browser.

How to use Palette from Image

  1. Choose or drop an image (or try the sample) to extract its dominant colors.

  2. Choose how many swatches to extract and click any swatch to copy its HEX code or copy CSS variables.

  3. Optionally export the extracted palette card as a PNG image.

Frequently asked questions

How are palette colors chosen?

PufferKit groups opaque pixels by color density and merges near-duplicates so swatches stay visually distinct.

Can I copy the palette for CSS?

Yes. Use Copy CSS variables to copy ready-to-paste custom properties.

Are transparent pixels counted?

No. Semi-transparent and fully transparent pixels are excluded when building the palette.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages