Skip to main content

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 uploaded
  • WCAG contrast checks
  • CSS & Tailwind export
Free design toolHow it works

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 palette two ways: by pulling the dominant colors out of an image, or by expanding a single base color into a harmonious scheme.

It 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.

Related design tools

FAQ

Your questions, answered

Have a question about your project? Ask us on a free call, and we'll give you a straight answer.

What is a color palette generator?
A color palette generator builds a set of coordinated colors you can use across a brand or website. This tool works two ways: it extracts the dominant colors from any image you upload, or it generates a harmonious palette from a single base color using rules like analogous, complementary, and triadic. Every color comes with HEX, RGB, and HSL values, a WCAG contrast check, and one-click export to CSS, Tailwind, SCSS, or JSON.
How do I create a color palette from an image?
Upload or drag in a photo and the tool samples its pixels and groups the most visually dominant colors using k-means clustering, returning the number of swatches you choose. It runs entirely in your browser using the canvas API - your image is never uploaded to a server. This is ideal for building a brand palette from a logo, product photo, or moodboard image.
What are analogous, complementary, and triadic color schemes?
These are classic color-harmony rules based on the color wheel. Analogous uses colors next to each other (calm, cohesive). Complementary uses opposite colors (high contrast, energetic). Triadic uses three evenly spaced colors (balanced and vibrant). Monochromatic varies the saturation of one hue, and shades vary its lightness. Pick a base color and the generator builds the scheme for you.
What is the 60-30-10 rule for color?
The 60-30-10 rule is a simple way to balance a palette in a design: use a dominant color for about 60% of the space (usually a neutral background), a secondary color for 30%, and an accent color for the remaining 10% (buttons, links, highlights). It keeps interfaces from feeling chaotic while still giving the accent color enough contrast to drive attention and clicks.
How do I check if my colors are accessible?
Each swatch shows its contrast ratio against white and black text and whether it passes WCAG AA (4.5:1 for normal text) or AAA (7:1). For accessible interfaces, make sure text and its background meet at least AA. Use the highlighted best text color shown on each swatch as a starting point, and verify specific text/background pairs with our contrast checker.
Can I export the palette as CSS or Tailwind?
Yes. The export panel produces copy-ready CSS custom properties, a Tailwind config color block, SCSS variables, or a JSON token object - so you can drop the palette straight into your codebase or design system. Most generators stop at HEX codes; the dev-friendly export is what makes this one fit a real build.
Is my uploaded image kept private?
Yes. The image never leaves your device - color extraction happens entirely in your browser using the canvas API. Nothing is uploaded, stored, or sent to any server, so it's safe to use with unreleased product shots or brand assets.
Is this color palette generator free?
Yes, completely free with no signup, no watermarks, and no usage limits. Generate and export as many palettes as you like.
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.

Tell us about your project

Tell us what you're building, when you need it, and what's in the way. A senior engineer will reply within one business day with honest next steps, even if that means we're not the right fit.

  • Your project is led by a senior engineer, not a junior and not AI on its own
  • AI speeds up the build. Every change is reviewed and tested before it ships
  • Best for MVPs, SaaS products, automation, and fixing apps that keep breaking
Browse all design tools