All tools
Analyze & Extract

Color Palette Extractor

Pull the main colors out of a photo, logo or artwork. Get 4 to 12 swatches with HEX and RGB values and copy them with a click.

Drop an image here or click to browse

JPG, PNG, WebP, GIF, BMP, TIFF, AVIF, HEIC or SVG · 1 file · 100 MB each

Turn an image into a color palette

Great color schemes are often found, not invented: a sunset, a product photo, a painting or a competitor's banner. Picking colors one pixel at a time with an eyedropper misses the overall feel of the image.

This tool analyzes the whole image and extracts its dominant colors using median cut quantization, the method behind the popular Color Thief library. It groups similar pixels together and returns a representative color for each group, giving you a balanced palette in HEX and RGB.

How to extract a color palette

  1. Step 1: Drop an image

    The palette is extracted automatically as soon as the image loads.

  2. Step 2: Choose how many colors

    Select 4, 6, 8, 10 or 12 colors, then press Re-extract.

  3. Step 3: Review the swatches

    Each color shows its HEX code and RGB value.

  4. Step 4: Copy the codes

    Click a swatch to copy its HEX code, or copy all codes at once.

Palette features

4 to 12 colors

Small palettes for branding, larger ones for illustration and UI.

HEX and RGB

Ready for CSS, Figma, Canva and most design tools.

One-click copy

Copy a single HEX code or all of them, one per line.

Whole-image analysis

Colors reflect the image as a whole, not a single pixel.

What to use palettes for

  • Brand and website colors. Build a scheme that matches your product photography.

  • Presentations and social posts. Pick text and background colors that suit an image.

  • Interior and fashion ideas. Capture the colors of a room or outfit you like.

  • Illustration and art. Borrow a mood from a reference image.

Why the palette may not include a tiny accent

Median cut groups pixels by how much of the image they cover, so large areas dominate. A small but striking detail, such as a red button on a gray product, may be merged into a neighboring color when you ask for only four or six colors.

Ask for 10 or 12 colors to surface smaller accents, or crop the image to the area that matters first with the image cropper.

From palette to usable color scheme

A raw palette is a starting point. For interfaces, choose one dark color for text, one light color for backgrounds, and one saturated color as the accent. Check text contrast before using a pair together; body text should have a contrast ratio of at least 4.5 to 1 against its background.

HEX codes paste directly into CSS as color values, and most design tools accept them in their color pickers.

  • Text: the darkest palette color.
  • Background: the lightest palette color.
  • Accent: the most saturated color, used sparingly.

Tips for better palettes

  • Use well-exposed photos; dark or washed-out images give muddy colors.
  • Crop out borders and watermarks before extracting.
  • Try several color counts; 6 to 8 is often the sweet spot.
  • Save the copied HEX list in your project notes for later.

Color palette extractor FAQ

How are the colors chosen?

The image is analyzed with median cut quantization, which groups similar pixels and returns the dominant color of each group.

How many colors can I extract?

4, 6, 8, 10 or 12 colors.

Which color formats are shown?

HEX codes and RGB values.

Can I copy all colors at once?

Yes. Copy all hex codes puts every HEX value on your clipboard, one per line.

Why did changing the count not update the palette?

Press Re-extract after choosing a new number of colors.

Is my image uploaded?

No. The colors are extracted in your browser.

Related image tools