---
title: "Color Palette from Image — Extract HEX Colors | fbuff"
description: "Upload a photo to extract its 5 dominant colors with HEX and HSL values you can copy for your designs. Free, and the image is processed only in your browser."
url: https://fbuff.com/tools/color-palette-extractor/
---

![An eyedropper above a landscape photo with five color swatches flowing out of it](https://fbuff.com/content/color-palette-extractor.webp)

## How to use

1. Drop a photo or image on the box, click it to choose a file, or paste an image with Ctrl+V. JPG, PNG, WebP and GIF work.
2. The 5 dominant colors appear at once, ordered from lightest to darkest, each with its HEX and HSL value.
3. Click Copy HEX or Copy HSL next to a color and paste it into Canva, Photoshop, Figma, your website's CSS or a paint store's color matcher.

## How to get a color palette from an image

Pick an image whose colors you like: a sunset, a room photo, a product shot, a painting or a brand's logo. Drop it here and the tool finds the five colors that cover the most of the picture. Use them as the palette for a slide deck, a wedding invitation, a website theme, a quilt or a room makeover.

To match a single exact spot, such as one button in a screenshot, use the Color Picker instead; this tool averages similar shades into a few main colors.

## How the colors are found

The image is scaled down and about 2,000 pixels are sampled evenly across it. Those pixels are grouped into five clusters of similar color with the k-means method, and each cluster's average becomes one swatch. Fully transparent pixels in a PNG are ignored, so a logo on a transparent background gives the logo's colors, not white.

Because the palette shows the most common colors, a small but striking accent, such as a red umbrella in a gray street, may not appear. Crop the image around the part you care about and drop it in again to bring those colors forward.

## HEX, RGB and HSL

Both formats describe the same color; use whichever your app asks for.

| Format | Example | Where it is used |
| --- | --- | --- |
| HEX | #4F46E5 | Websites, Canva, Figma, most design apps |
| HSL | hsl(243, 75%, 59%) | CSS; easy to make lighter or darker by changing the last number |
| RGB | rgb(79, 70, 229) | Office apps and image editors (convert HEX with the Color Picker) |

## Frequently asked questions

### Why are only 5 colors shown?

Five is enough for a balanced palette: usually one or two background tones, a main color and an accent. More swatches tend to repeat near-identical shades.

### Why does the same image sometimes give slightly different colors?

The grouping step can settle on slightly different clusters when colors are evenly mixed. The differences are small shades of the same colors; run it again or crop the image if you want a particular tone.

### Can I use the colors from a photo I found online?

Colors themselves are not copyrighted, so using a palette for inspiration is fine. The photo is a different matter: don't reuse the image itself without permission.

### Is my image uploaded?

No. The image is analyzed in your browser and never leaves your device.

Found a problem or have an idea? [Report a problem](https://fbuff.com/contact/?tool=color-palette-extractor)

Share

## You might also like

- - [Color Picker Pick any color and copy HEX, RGB, and HSL values instantly.](https://fbuff.com/tools/color-picker/)
- - [Image Compressor Compress JPG, PNG and WebP images in your browser without uploading.](https://fbuff.com/tools/image-compressor/)
- - [Image Resizer & Aspect Ratio Resize images by pixels or percentage, select standard aspect ratios, lock proportions, and preview before downloading. 100% local.](https://fbuff.com/tools/image-resizer/)
- - [Background Remover Remove portrait backgrounds with in-browser ML and download a transparent PNG locally.](https://fbuff.com/tools/background-remover/)
- - [Image to ICO Converter Convert PNG, JPG, WebP and more to .ico favicon files with multiple sizes.](https://fbuff.com/tools/image-ico-converter/)
- - [Image Format Converter Convert images between PNG, JPEG, WebP, and BMP formats. Adjust quality for JPEG/WebP. 100% client-side, no upload.](https://fbuff.com/tools/image-converter/)
- - [Image Splitter Split any image into a grid of equal tiles or fixed-size pieces. Download all tiles at once. 100% client-side.](https://fbuff.com/tools/image-splitter/)
- - [Meme Generator Add bold top and bottom text to any image and download your meme. 100% client-side.](https://fbuff.com/tools/meme-generator/)
- - [Image Watermark Add a text or logo watermark to your images with adjustable position, size, and opacity. 100% client-side.](https://fbuff.com/tools/image-watermark/)
- - [Gemini Watermark Remover Remove the Gemini sparkle and AI metadata (C2PA, EXIF, XMP) from images, in bulk or a whole folder, and hidden characters from AI text.](https://fbuff.com/tools/ai-watermark-remover/)
