Color Palette Generator: Harmonies with Contrast Checks
Pick a base colour and get five matching colours from a colour-wheel harmony. Lock the ones you like, check WCAG contrast for every pair, and copy CSS variables, Tailwind or JSON.
Rate this toolPalette Studio
5 harmonies · locks · WCAG contrast · CSS, Tailwind, JSON
Your base colour
Type a 6-digit hex code (a # and six digits or letters A to F), or use the picker.
Harmony
Lock a swatch to keep it while you try other bases and harmonies. Space bar picks a random base.
Analogous palette
Tap a swatch to copy its hex code.
:root {
}0 of 0 colour pairs reach 4.5:1, the AA level for normal-size text.
- Harmony modes
- 5Harmony modes
- Colours per palette
- 5Colours per palette
- Export formats
- 3Export formats
- AA text contrast
- 4.5:1AA text contrast
Do more with your colours
Tools that pick up where this one leaves off.
A colour palette in three steps
From one brand colour to a checked, exportable palette. No sign-up.
- STEP 01
Pick a base
Use the colour picker, type a hex code, or tap Random palette.
Space bar for random - STEP 02
Choose a harmony
Analogous, complementary, triadic, split-complementary or tetradic.
Lock what you like - STEP 03
Check and export
Read the WCAG contrast table, then copy CSS, Tailwind or JSON.
Tap a swatch to copy
How to use this colour palette generator
The base colour is always the first of the five swatches. The other four come from turning around the colour wheel.
- 1
Start from your brand colour
Paste its hex code. A palette built around it will feel like your brand.
- 2
Try each harmony
Switch harmonies to see different moods. The swatches update at once.
- 3
Lock the keepers
Lock a swatch you like, then change the base or harmony to explore the rest.
- 4
Check, then copy
Open the contrast details before you pick text colours, then copy the export you need.
Habits for palettes that work
A pretty palette still has to be readable.
Check text pairs
Body text needs 4.5:1 against its background for WCAG AA. Large text needs 3:1.
- 4.5:1 for body text
- 3:1 for 18pt or 14pt bold
- 7:1 for AAA
Give each colour a job
Decide which colour is for buttons, which for backgrounds and which for accents.
- One main colour
- One or two accents
- Neutrals for text
Add black and white
Harmony colours are rarely dark or light enough for body text. Pair them with near-black and white.
- Dark text on light
- Light text on dark
- Check both
Don't rely on colour alone
Some people can't tell certain colours apart. Add icons or labels to anything that colour signals.
- Error icon plus red
- Underline links
- Label chart lines
The five colour harmonies
Each one picks hues at fixed angles around the colour wheel from your base.
Analogous
Neighbours on the wheel: 30 and 60 degrees each way, plus one opposite accent.
- +30°, +60°, -30°
- One +180° accent
- Low contrast, soft
Complementary
The base and the hue directly opposite, with lighter and darker versions of each.
- +180°
- Light and dark variants
- Strong contrast
Triadic and tetradic
Three hues 120° apart, or four 90° apart. Colourful, so let one lead.
- Triadic: +120°, +240°
- Tetradic: +90°, +180°, +270°
- Pick one main colour
Split-complementary
The two hues either side of the opposite: contrast without the clash.
- +150° and +210°
- Plus softer variants
- Easier than complementary
Who builds colour palettes
Anyone choosing colours for something other people will read.
Designers
A palette starts every brand sheet and design system.
Front-end developers
Colours end up as CSS variables or a Tailwind theme.
Marketers
Banners and social posts need colours that match the brand and stand out.
Small business owners
A shop front, site and packaging look better with three or four set colours.
What WCAG 2.2 says about contrast
The W3C's accessibility guidelines set minimum contrast ratios. Ratios run from 1:1 (same colour) to 21:1 (black on white).
Level AA
Success criterion 1.4.3, Contrast (Minimum).
- 4.5:1 for normal text
- 3:1 for large text
- Large: 18pt, or 14pt bold
- Logos are exempt
Level AAA
Success criterion 1.4.6, Contrast (Enhanced).
- 7:1 for normal text
- 4.5:1 for large text
- Best for long reading
- Hard to meet with bright colours
Non-text, AA
Success criterion 1.4.11 for controls and graphics.
- 3:1 against adjacent colours
- Input borders and icons
- Focus indicators
- Chart parts you need to read
The studio marks pairs against 4.5:1 and 7:1, the normal-text levels. For large text or icons, compare the ratio with 3:1 yourself.
Keeping a palette consistent
A palette is only useful if everyone uses the same values.
- 1
Store it as variables
Paste the CSS export into one stylesheet, so a colour change is one edit.
- 2
Name by role
Rename --color-1 to --brand or --accent. Roles survive a rebrand; hex codes don't.
- 3
Record the contrast
Note which pairs pass for text, so nobody puts light text on a light swatch later.
- 4
Review yearly
Check new screens against the palette and drop colours nobody uses.
This generator vs a design app vs picking by eye
Three ways to choose colours. Pick by what you need to hand over.
| Feature | CleverTools generator | Design app | By eye |
|---|---|---|---|
| Setup | ✓ None | Install and learn | ✓ None |
| Colour-wheel harmonies | ✓ Five | Plugin or manual | ✗ Guesswork |
| Contrast ratios | ✓ Every pair | Plugin | ✗ No |
| CSS and Tailwind export | ✓ One tap | Varies | ✗ Type it out |
| Fine tuning shades | Pick a new base | ✓ Full control | ✓ Full control |
| Data leaves your device | ✓ Never | Cloud apps sync | ✓ Never |
Have a photo or logo instead? Pull its colours with the image colour picker.
Pro tips for colour palettes
Small habits that make a palette easier to use.
Lock, then explore
Lock the brand colour, then try new bases and harmonies for the rest.
Space for random
Press the space bar (outside a field or button) for a fresh random base.
Low ratios are normal
Harmony colours are similar in lightness, so most pairs fail for text. Use them for fills.
Text needs a neutral
Check each swatch against near-black and white for text and button labels.
Rename the variables
The CSS export uses --color-1 to --color-5. Rename them to roles in your code.
Test on a phone
Outdoor light washes colours out. Check the palette on a phone screen in daylight.
Keep hex, rgb and hsl
The JSON export keeps all three values for every colour, with a name for each.
Tap to copy
Tap any swatch to copy its hex code straight to the clipboard.
Colours that look good together often sit close in lightness, which is exactly why they fail contrast checks. Use the palette for surfaces and accents, and choose text colours by the contrast table, not by the wheel.
AA or AAA? Which contrast level to aim for
Both come from WCAG 2.2. They differ in how much contrast normal text needs.
Level AA
Normal text at 4.5:1, large text at 3:1. Reachable with most brand colours paired with a dark or light neutral.
Best for most sites and apps
Level AAA
Normal text at 7:1, large text at 4.5:1. Easier to read for more people, but rules out many mid-tone colours.
Best for long reading and public services
Who uses this colour palette generator
Six everyday jobs that start with one colour.
Starting a brand
Grow a full palette from one logo colour.
Theming a website
Copy CSS variables into the site's stylesheet.
Setting up Tailwind
Paste the export into the theme's colours.
Designing a campaign
Find a complementary colour for buttons and banners.
Building an app theme
Check text pairs before they go into the app.
Learning colour theory
See what each harmony does to the same base.
Frequently asked questions
Quick answers about harmonies, contrast and exports.
Is the Color Palette Generator free?
What harmony modes are available?
What is the WCAG Contrast Checker?
Can I export for Tailwind CSS?
How do I use the random palette feature?
Is my data safe?
What people say
Reviews from people who used this tool.
Loading reviews…
Popular presets
Jump to a version of this tool already set up for a specific need.
More free design and colour tools
Free, with no sign-up, just like this one.
- Free toolQR Code GeneratorGenerate styled QR codes - vCard, Event, gradient, logo, eye and matrix shapes - every feature free, no Pro lock, no watermark.Try it now
- Free toolReview Reply GeneratorWrite 3 to 5 natural replies to a Google review for any star rating, in English, Hindi or Hinglish.Try it now
- Free toolInstagram Hashtag GeneratorGet the 5 best Instagram hashtags for any post or Reel.Try it now
- Free toolRandom Number GeneratorPick random numbers in any range, with or without repeats, spin a wheel of names, flip a coin or roll dice.Try it now
- Free toolEmail ExtractorExtract, validate, and classify email addresses from any text or fileTry it now
- Free toolAge CalculatorCalculate your exact age in years, months, days, hours - plus zodiac, birthstone, government-job eligibility, and 25+ life statistics.Try it now