Skip to main content
Free Tools

Color palette generator: build a palette from any image

Extract the dominant colors from any image, or generate a harmonious palette from a base color - with HEX/RGB/HSL, WCAG contrast checks, and one-click CSS, Tailwind, SCSS, and JSON export. Free, runs in your browser.

Nothing uploadedWCAG contrast checksCSS & Tailwind export

Drop an image here or click to upload

Processed in your browser - nothing is uploaded

A good color palette makes a brand feel intentional and a website easy to use. This generator builds one two ways - by pulling the dominant colors out of an image, or by expanding a single base color into a harmonious scheme - and then gives you the HEX/RGB/HSL values, accessibility checks, and code exports you need to actually ship it.

What this tool produces

Colors from an image

Dominant colors extracted from a logo, photo, or moodboard - in your browser.

Harmonies from a color

Analogous, complementary, triadic, monochromatic, and shade schemes.

Accessibility built in

A WCAG contrast ratio and AA/AAA verdict on every swatch.

Dev-ready export

Copy as CSS variables, Tailwind config, SCSS, or JSON tokens.

How to build a brand palette

  1. Choose a source - upload an image, or pick a base color and a harmony rule.
  2. Set the size - choose how many colors you want (3-10).
  3. Review & check contrast - inspect the values and WCAG level on each swatch.
  4. Export - copy the palette as CSS, Tailwind, SCSS, or JSON.

Color harmony rules

Color harmony rules and when to use each
SchemeHow it's builtBest for
AnalogousColors next to each other on the wheelCalm, cohesive brands
ComplementaryOpposite colors on the wheelHigh-contrast CTAs and accents
TriadicThree evenly spaced colorsVibrant, balanced, playful
MonochromaticOne hue, varied saturationMinimal, focused UIs
ShadesOne hue, varied lightnessDesign-system tints/shades

The 60-30-10 rule

Once you have a palette, balance it: use one color for roughly 60% of the design (usually a neutral background), a second for 30% (supporting surfaces and sections), and an accent for the final 10% (buttons, links, highlights). Reserving the accent for the 10% is what gives calls-to-action enough visual contrast to get clicked - which is why an accessible, high-contrast accent color matters as much for conversion as it does for accessibility.

Color accessibility (WCAG)

Contrast determines whether people can actually read your text. WCAG requires a ratio of at least 4.5:1 for normal text (AA) and 7:1 for AAA; large text can pass at 3:1. Each swatch here shows its best text color and the ratio it achieves, so you can spot a beautiful brand color that's unusable for body text before it ships. Verify specific text/background pairings with our brand color & contrast checker, and see the WCAG contrast guidance for the full rules.

Frequently asked questions

What is a color palette generator?
A tool that builds a coordinated set of colors - from an image or a base color - with HEX/RGB/HSL, contrast checks, and code export.
How do I make a palette from an image?
Upload or drop in a photo; the tool clusters its pixels and returns the dominant colors, entirely in your browser.
What are analogous, complementary, and triadic schemes?
Color-wheel harmonies: adjacent (calm), opposite (high-contrast), and three evenly spaced (vibrant) colors.
What is the 60-30-10 rule?
Use a dominant color ~60%, a secondary ~30%, and an accent ~10% to keep designs balanced and CTAs prominent.
How do I check accessibility?
Each swatch shows its contrast ratio and AA/AAA verdict; aim for at least 4.5:1 for normal text.
Can I export to CSS or Tailwind?
Yes - copy-ready CSS variables, Tailwind config, SCSS, or JSON tokens.
Is my image private?
Yes - extraction happens in your browser via the canvas API; nothing is uploaded.
Is it free?
Yes - free, no signup, no watermarks, no limits.

Related design tools

Launch Faster

Ready to ship your next product?

Tell us what you're building. Senior engineers will scope, plan, and start delivering your product with production-ready architecture - fast.

Talk to real engineers
Clear scope in one call
No obligation