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
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
- Choose a source - upload an image, or pick a base color and a harmony rule.
- Set the size - choose how many colors you want (3-10).
- Review & check contrast - inspect the values and WCAG level on each swatch.
- Export - copy the palette as CSS, Tailwind, SCSS, or JSON.
Color harmony rules
| Scheme | How it's built | Best for |
|---|---|---|
| Analogous | Colors next to each other on the wheel | Calm, cohesive brands |
| Complementary | Opposite colors on the wheel | High-contrast CTAs and accents |
| Triadic | Three evenly spaced colors | Vibrant, balanced, playful |
| Monochromatic | One hue, varied saturation | Minimal, focused UIs |
| Shades | One hue, varied lightness | Design-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
- Brand color & contrast checker - test specific text/background pairs for WCAG.
- Favicon & app icon generator - create icons in your new brand colors.
- Open Graph generator - build social cards that match your brand.
- Image compressor - optimize the brand imagery you ship.
Try these next
Browse all design tools- CSS Gradient GeneratorLinear, radial & conic gradients
- Brand Color & Contrast CheckerCheck your colors for accessibility
- Favicon & App Icon GeneratorICO, PNG, Apple touch & PWA icons
- QR Code GeneratorFree static QR codes, no expiry
- Email Signature GeneratorProfessional HTML signatures, free
- Dental Website GraderScore your practice website in 2 minutes
Guides on this topic
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?
How do I create a color palette from an image?
What are analogous, complementary, and triadic color schemes?
What is the 60-30-10 rule for color?
How do I check if my colors are accessible?
Can I export the palette as CSS or Tailwind?
Is my uploaded image kept private?
Is this color palette generator free?
What is the 60-30-10 rule?
How do I check accessibility?
Can I export to CSS or Tailwind?
Is my image private?
Is it free?
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
