Instant Image Palette

Extract Colors. Get Tailwind.

Drop any screenshot, photo, or design file. Get the dominant colors mapped to real Tailwind CSS classes in seconds — no uploads, no signup.

Drop an image here or click to upload

JPG, PNG, WebP, GIF, SVG — or paste from clipboard (Ctrl+V)

Private · never uploaded

Fully Client-Side

Canvas API pixel analysis runs entirely in your browser. Your images stay private — nothing is ever sent to a server.

CIEDE2000 Matching

Colors are mapped using the CIEDE2000 perceptual formula — the gold standard for color difference, not just nearest hex math.

Copy-Ready Output

One click copies individual class names, all classes at once, or a full CSS variables block ready for your Tailwind project.

How to Extract Colors from an Image for Tailwind CSS

A practical guide to turning any image into a usable Tailwind color palette.

What Is Color Extraction?

Color extraction is the process of identifying the most visually significant colors in an image. Rather than picking colors manually from a screenshot, an extraction algorithm reads every pixel and groups similar hues together, then surfaces the ones that appear most frequently — your dominant palette.

This is especially useful for designers and developers who want to match a brand logo, reference image, or UI screenshot to a set of reusable design tokens — like Tailwind CSS utility classes.

Using Extracted Colors in Tailwind

Once you have your Tailwind class names (e.g. bg-blue-500), you can use them directly in your JSX or HTML. For custom colors that don't map perfectly to the default palette, use Tailwind's arbitrary value syntax:

<div class="bg-[#4a90d9] text-white">
  Custom color
</div>

/* Or extend your theme in CSS */
@theme {
  --color-brand: #4a90d9;
}

Why CIEDE2000 Matching Matters

When mapping an extracted hex color to the nearest Tailwind class, simple Euclidean distance in RGB space gives poor results — because RGB does not model how the human eye perceives color. A difference of 30 units in the blue channel looks far smaller than the same difference in the red channel.

The CIEDE2000 (ΔE00) formula operates in CIELAB color space and applies perceptual corrections for lightness, chroma, and hue differences. A ΔE00 value below 2 is nearly imperceptible to the human eye. This tool shows you the exact ΔE00 distance for each match so you know how close each Tailwind class really is to your extracted color.

Frequently Asked Questions

How does the color extraction work?

The tool downsamples your image to 150×150 pixels using the Canvas API, reads all pixel data, buckets colors into groups, and ranks by frequency to surface the most dominant hues.

Is my image ever uploaded?

Never. All processing happens in your browser via the Canvas API. Your image does not leave your device.

How are Tailwind classes matched?

Each dominant color is matched against the full Tailwind v4 OKLCH palette using CIEDE2000 perceptual color difference — the same algorithm used by professional color scientists.

What file types are supported?

JPG, PNG, WebP, GIF, and SVG. You can upload via file picker, drag-drop, or paste directly from your clipboard.

NEED A FULL SCALE?

Take any extracted hex and generate a complete 50–950 Tailwind palette using our OKLCH-powered palette generator.