Skip to content
ImagesLocal · Stays on device

Image Palette Extractor

Extract the dominant colours from a photo or artwork, with their share of the image, contrast hints and CSS/JSON export.

  • JPEG, PNG, WebP, GIF
  • Free to use
  • No sign-up or watermark
sample-lakeside.jpgOn this device
OriginalResult

About this tool

Finds the main colours in an image using k-means clustering, a standard way of grouping similar pixels. Choose between 2 and 12 colours; each swatch shows its HEX value, how much of the image it covers, and its contrast against white and black text with a WCAG AA indicator.

Export the palette as CSS custom properties, SCSS variables, JSON or a Tailwind colours object. Large images are sampled down first for speed, and transparent pixels are ignored. Results are deterministic, so the same image gives the same palette. Your images are processed on your device and never uploaded.

  1. Input

    Your images

    JPEG, PNG, WebP, GIF, BMP

  2. Processing

    Processed in this browser

    In-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineCanvas + k-means clustering (color.ts)

How to use it

  1. 1

    Drop an image.

  2. 2

    Choose how many colours to extract.

  3. 3

    Copy individual colours or export the whole palette.

Zero-upload architecture

How to use Image Palette Extractor for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Image Palette Extractor

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Choose how many colours to extract.

  3. 3

    Get your result

    Copy individual colours or export the whole palette.

All 71 image tools
  • Local

    Image Color Picker

    Pick any colour from an image with a magnifier and copy it as HEX, RGB, HSL or OKLCH.

    Open tool
  • Local

    Color Palette Generator

    Build harmonious palettes and 50–950 tonal scales from one colour, or extract a palette from any image.

    Open tool
  • Local

    Color Contrast Checker

    Check text and background colours against WCAG 2.2 AA and AAA, and get the nearest passing colour.

    Open tool
  • Local

    QR Code Image Styler

    Design a branded QR code with dot and corner styles, colours or a gradient, a logo and a framed caption, with scan checks.

    Open tool