What is a colour palette generator?
A colour palette generator suggests sets of colours that look good together, so you don't have to pick each one by trial and error. Designers use palettes for brands, websites, slides and illustrations.
This one works two ways. Palette mode creates five colours from a harmony rule, such as complementary or pastel; press the space bar for new ideas and lock any colour you want to keep. Shade scale mode takes one colour and builds eleven evenly spaced lighter and darker steps, named 50 to 950, for buttons, backgrounds, borders and text.
How to use the Colour palette generator
1.Pick a mode
A five-colour palette, or a shade scale from one base colour.
2.Generate and refine
Press space or Generate; lock colours to keep them, or type exact values.
3.Export
Copy CSS variables, Tailwind colours or JSON.
Example: a scale from a brand blue
Base colour #2547d0, named brand:
- Exact colour placed at
- 700 ★
- 50 (lightest)
- #f3f7ff
- 500
- #4d7aff
- 950 (darkest)
- #07133d
Eleven related blues, exported as --brand-50 to --brand-950, cover light backgrounds through dark text.
Built on how people see colour
Colours are generated in OKLCH, a colour space where equal steps in lightness look equal to the eye. That's why the shade scale moves evenly from near-white to near-black instead of bunching up, and why generated palettes rarely include a colour that looks oddly bright or muddy.
In the scale, your exact colour sits at the step nearest its own lightness, marked with a star, and colour strength eases off toward the lightest and darkest steps, where screens can't show strong colour anyway.
Frequently asked questions
What do the harmony rules mean?
Analogous uses neighbouring hues, complementary uses opposites, triadic three evenly spaced hues, and monochrome one hue at different lightness.
How does locking work?
Locked colours stay when you generate, and new colours follow the first locked colour's hue.
Can I share a palette?
Yes. The colours, locks and settings are in the page address.
Is this the same scale Tailwind uses?
It uses the same 50 to 950 step names, but the shades are calculated from your colour rather than copied from Tailwind's built-in palette.
Related tools
Image colour palette extractor
Pull the main colours out of a photo with hex codes and CSS.
Colour Picker
Pick a colour and get its codes, tints, shades and harmonies.
Colour blindness simulator
See colours or an image as people with colour vision deficiency do.
HEX ↔ RGB ↔ HSL Converter
Convert a colour between HEX, RGB, HSL, HSV and CMYK, with alpha.
Colour Contrast Checker (WCAG)
Check text and background colours against WCAG AA and AAA.
JSON Formatter & Validator
Pretty-print, minify, sort and validate JSON with line-numbered errors.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table