🌐 English

Color Palette Extractor

Upload a photo, logo or screenshot and extract its dominant colours as HEX, RGB and HSL with percentages. Download a swatch PNG, CSS variables, JSON or a GIMP/Inkscape palette. Free and private.

  1. Upload
  2. Options
  3. Download

How to: Color Palette Extractor

  1. Choose an image – photo, logo, artwork or screenshot.
  2. Pick how many colours you want (3–12).
  3. Click a swatch to copy its HEX, or download the palette in your preferred format.

Great palettes are often found, not invented – in a sunset photo, a vintage poster or a competitor’s logo. FreePDF’s colour palette extractor analyses any image and returns its dominant colours with HEX, RGB and HSL values and the share of the image each one covers. Download the result as a swatch image, ready-to-paste CSS custom properties, JSON or a .gpl palette for GIMP and Inkscape. The analysis runs on your own device.

Common uses

Tips for best results

How the extraction works

The image is scaled down to a manageable number of pixels, then every pixel is placed in a colour space designed to match human perception. A k-means clustering algorithm groups similar pixels and finds the average colour of each group. The largest groups become the dominant colours. Working in a perceptual space means two colours that look different to you are kept apart, even if their raw RGB numbers are close.

HEX, RGB and HSL explained

HEX (#2A9D8F) is the compact format used in HTML, CSS and most design apps. RGB lists the red, green and blue components from 0 to 255. HSL describes hue (the colour wheel angle), saturation (intensity) and lightness, which is the easiest format for making lighter or darker variations – keep the hue and change the lightness. Every swatch shows all three so you can paste whichever your tool needs.

Turning a palette into a design

A practical scheme usually has one or two dominant colours, a neutral for backgrounds and text, and an accent for buttons and highlights. Take the most common extracted colour as your base, find a contrasting accent among the rest, and test readability. The 60-30-10 rule – 60% main, 30% secondary, 10% accent – is a reliable starting point for slides, websites and rooms alike.

Why use FreePDF for Color Palette Extractor?

FreePDFTypical upload-based sites
Files uploaded to a serverNo – processed on your deviceYes
Sign-up requiredNeverOften for bigger jobs
Hourly / daily task limitsNoneCommon on free plans
Watermark on outputNeverSometimes
Works offline after loadingYes, for most toolsNo

Frequently asked questions

Is my image uploaded?

No. The image is analysed in your browser using a canvas; it never leaves your device.

How are the colours chosen?

Pixels are grouped with k-means clustering in a perceptual colour space, so the palette reflects colours as people see them, ordered by how much of the image each covers.

Which image formats work?

JPG, PNG, WebP, GIF, BMP and most other formats your browser can display, including HEIC on Safari.

Can I get more than 12 colours?

The maximum is 12, which covers almost every design use. For exact pixel colours, use a colour picker instead.

Does transparency affect the result?

Fully transparent pixels are ignored, so logos on transparent backgrounds give clean palettes.

Is Color Palette Extractor really free?

Yes. Every tool on FreePDF is 100% free with no file limits, no sign-up and no watermarks. The site is supported by unobtrusive ads.

Are my files uploaded to a server?

No. FreePDF processes your files directly in your browser using JavaScript. Your documents never leave your device, so they stay completely private.

Does it work on mobile?

Yes. FreePDF works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux.

Other tools

Compress ImageResize ImageCrop ImageRotate & Flip ImageImage ConverterPNG to JPGJPG to PNGWEBP to JPGWEBP to PNGJPG to WEBPPNG to WEBPAVIF to JPGJPG to AVIFTIFF to JPG