Color Palette Extractor — Pull Colors from Any Image
Extract a brand-ready color palette in one click. Dominant, vibrant, muted, complementary, Material, and Tailwind modes. Export as CSS, Tailwind, SCSS, or JSON.
Dominant · 5 colors
Got a palette? Now make the content.
Turn your brand colors into product photos, UGC videos, and ads.
How It Works
Upload Your Image
Drop any image — a photo, logo, screenshot, or artwork.
Choose Mode & Size
Pick a mode (Dominant, Vibrant, Muted, Complementary, Material, Tailwind) and palette size (5, 8, or 10 colors).
Copy or Export
Tap any swatch to copy HEX. Export the full palette as CSS variables, Tailwind config, SCSS, or JSON.
How Color Palette Extraction Works
This tool uses k-means clustering — the same algorithm behind Adobe Color, Coolors, and professional palette tools — to find the most representative colors in any image.
Every pixel in your image is a point in three-dimensional color space (red, green, blue). K-means clustering groups these millions of points into k clusters based on proximity — pixels with similar colors end up in the same cluster. The center of each cluster is a single color that represents that group of pixels. Those cluster centers are your palette. The cluster with the most pixels becomes the dominant color; the rest are ranked by population.
The extractor runs entirely in your browser using JavaScript. Large images are automatically downsampled to a 200-pixel square before clustering — this keeps extraction under a second even on 50-megapixel photos, without changing the result (the same clusters emerge at any resolution).
Why Different Modes Give Different Palettes
Each mode filters which pixels get fed into the k-means algorithm. Dominant mode uses every pixel — so backgrounds and neutral tones are included. Vibrant mode filters to pixels with high saturation (the color feels rich, not washed out), dropping whites, grays, and pastels. Muted mode does the opposite — only low-saturation pixels pass through, giving you soft, editorial palettes. The algorithm is the same; the inputs change.
Complementary, Material, and Tailwind Modes
Complementary mode runs dominant extraction, picks the top color, and generates a color-theory harmony palette around it (complementary, analogous, triadic). Material mode runs extraction, then snaps each result to the nearest official Material Design color. Tailwind mode does the same for Tailwind CSS's default palette. These modes are useful when you need a palette that fits a specific design system instead of an arbitrary color scheme.
What You Can Do With Extracted Palettes
Brand Identity
Extract a palette from a mood board, logo, or reference image to build your brand's color system. Export as CSS variables for your stylesheet, Tailwind config for your app, or plain HEX for your style guide.
Web & App Design
Build theme palettes for a website or app from reference screenshots or inspiration images. Tailwind and Material modes make the output drop-in ready for modern design systems.
UI Themes & Dark Mode
Extract two palettes from similar images (one bright, one muted) to build light/dark mode variants. Use the JSON export to generate tokens for design-to-code workflows.
Social Media & Content
Match your Instagram aesthetic, TikTok visual style, or brand photography palette. Pick a reference post, extract its colors, and reuse across thumbnails, stories, and graphics.
Art & Illustration
Study master painters, vintage posters, or reference photography. Extract palettes from artwork you admire and use them in your own illustrations or digital paintings.
Interior Design & Fashion
Pull palettes from photos of rooms, fabrics, or outfits to match paint, textiles, or accessories. The HEX values feed directly into paint matching tools and fabric ordering systems.
Palette Export Formats
Five export formats ready to drop into your workflow.
CSS Custom Properties
Pastes directly into your :root block. Reference with var(--color-1) anywhere in your stylesheet. Works in all modern browsers without build tools.
SCSS Variables
For projects using Sass. Defines $color-1 through $color-N, ready to use in mixins, functions, and nested rules. Drop into your _variables.scss file.
Tailwind Config
Copies a snippet ready to paste into theme.extend.colors in tailwind.config.js. This creates classes like bg-brand-500, text-brand-700 tied to your extracted palette. No manual class renaming — the palette is versioned with your codebase.
JSON
Structured format: each color with HEX, RGB, HSL, and population percentage. Ideal for feeding into design-token pipelines (Style Dictionary, Theo, Dynamics Theme Builder) or for storing palettes programmatically.
Plain HEX
Simplest output: one HEX code per line. Paste into any color picker, design tool, note, or chat. Universally compatible.
Features
6 Extraction Modes
Dominant, Vibrant, Muted, Complementary, Material, Tailwind.
5, 8, or 10 Colors
Pick the palette size that matches your design system.
5 Export Formats
CSS vars, SCSS, Tailwind config, JSON, plain HEX.
100% Private
Runs in your browser. Images never leave your device.
Instant
Extraction completes in under a second, even on large images.
Unlimited & Free
No limits, no sign-up, no watermarks.
Frequently Asked Questions
Is my image uploaded to a server?
How does the palette extractor find colors?
What is the difference between Dominant, Vibrant, and Muted modes?
What is Complementary mode?
What is Material and Tailwind mode?
How many colors can I extract?
What export formats are supported?
--color-1: #abc), SCSS variables ($color-1: #abc), Tailwind config snippet (ready to paste into tailwind.config.js), JSON, and plain HEX list. Click any format to copy or download.Can I extract colors from a logo or brand image?
How is this different from an eyedropper tool?
What image formats are supported?
Is there a file size limit?
Does it work on mobile?
How do I extract a color palette in Photoshop?
How do I extract a palette in Figma or Sketch?
What is k-means clustering in color extraction?
Why do I get slightly different palettes each time?
How do I use an extracted palette in CSS?
:root block: :root { --color-1: #3b5bdb; --color-2: #fff5f5; ... }. Reference anywhere with var(--color-1). For Tailwind, copy the Tailwind Config export into theme.extend.colors in tailwind.config.js — gives you classes like bg-brand-500.Can I extract a palette from a website screenshot?
What makes a good color palette?
How do I find the dominant color of an image?
Can I extract colors from a painting or artwork?
What is the difference between analogous, complementary, and triadic palettes?
How do I save or bookmark a palette?
Can I generate a palette from multiple reference images?
Related Free Tools
Turn your palette into a brand
AI product photography, UGC videos, and avatars that match your color system. Everything you need to scale your brand's content.
Try It — 200 Credits for $10Pro Version Available
Get the full Color Palette Extractor
- Save palettes to your account
- Batch-extract palettes from product catalogs
- AI-suggested brand palettes
Related Free Tools
More free image tools — no signup required