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.
- Upload
- Options
- Download
- ✓ 100% free
- ✓ No sign-up
- ✓ No limits
- 🔒 Files never leave your device
How to: Color Palette Extractor
- Choose an image – photo, logo, artwork or screenshot.
- Pick how many colours you want (3–12).
- 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
- Build a website or brand palette from a mood-board photo.
- Match a presentation or social graphic to a client’s logo.
- Find the exact colours used in a screenshot or design reference.
- Create paint, interior or wedding colour schemes from inspiration pictures.
- Export palettes for illustration apps and design systems.
Tips for best results
- Fewer colours (5–6) give a cleaner, more usable palette.
- Crop busy images first so the palette focuses on the subject.
- Sort by hue to arrange colours as a smooth gradient.
- Check text and background pairs for contrast before using them in a design.
- Use the CSS variables export to drop the palette straight into a stylesheet.
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?
| FreePDF | Typical upload-based sites | |
|---|---|---|
| Files uploaded to a server | No – processed on your device | Yes |
| Sign-up required | Never | Often for bigger jobs |
| Hourly / daily task limits | None | Common on free plans |
| Watermark on output | Never | Sometimes |
| Works offline after loading | Yes, for most tools | No |
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.