Image Color Lab

Palette extraction

Color palette generator

Every image already contains a palette. Drop one in and the tool ranks its dominant colors, lets you add your own swatches, and exports the result as CSS variables, a Tailwind v4 theme, JSON or a plain hex list.

Step 1 — add an image

Drop an image here

PNG, JPG, WebP, GIF or BMP. Nothing is uploaded — the file is decoded and drawn onto a canvas in this tab.

or press Ctrl / ⌘ + V to paste

A remote image needs the other site's CORS permission. If it is blocked, download the file and upload it instead.

Image

No image yet

Add one above to start picking colors.

Hover to preview, click to pin the color so it stays while you copy. Arrow keys nudge the pinned pixel by 1px, Shift + arrow by 10px, and a magnifier shows the exact pixel.

Picked color

Live preview—

#171717

Nearest name: —

rgb(23, 23, 23)

hsl(0 0% 9%)

cmyk(0% 0% 0% 91%)

oklch(20.5% 0 0)

Pick a pixel, then copy the code you need.

Your image never leaves your device — there is no upload step.

Palette from this image

Add an image and its dominant colors appear here — computed in this tab, never uploaded.

    Add an image to export its dominant colors.

    Recent picks

    Click a pixel to build a history. It stays in this browser and is never sent anywhere.

      Color vision preview

      How the picked color reads with common color vision deficiencies.

      Protanopia

      #171717

      Deuteranopia

      #171717

      Tritanopia

      #171717

      Tints, shades & harmonies

      Tints

      Shades

      Complementary

      Analogous

      Triadic

      How the palette is extracted

      The image is drawn on a small scratch canvas, its pixels are grouped into color bins, and the most frequent groups win. Nearby shades are skipped so the result is a usable set of distinct colors rather than eight versions of the same beige. Each swatch shows the averaged color of its group, and clicking one copies its hex code.

      From palette to code

      The export menu writes the palette as CSS custom properties:--color-1: #2596be; and so on, as a Tailwind v4@theme block, as JSON, or as a comma-separated list of hex values. Copy it straight into a stylesheet or a design token file.

      Need the palette of one product photo rather than the whole page? The palette is built from the image you loaded, not from the interface. Add the color you clicked withAdd picked color to keep a specific accent next to the extracted set.

      Need one color rather than a whole palette? Copy it with theHEX color picker from image, or convert a code you already have with thecolor code converter.