Color Palette Generator for designers and developers. Build harmonious palettes from 2 to 8 colors. Edit each color by picker, hex code, RGB sliders, or eyedropper. Export directly to CSS variables, Tailwind config, SCSS, JSON, or a high-resolution PNG. Recent palettes, live URL sharing, and full dark-mode support. Free, private, no signup.
Note: colours may render slightly differently on different screens, print profiles, and browsers.
Tip: press ⌘/Ctrl + Enter to shuffle the palette.
Pick five colors by eye. They will not look right together.
Most people choose colors one at a time. Each one looks good on its own. Together they clash.
The problem is not the individual colors. It is the relationship between them. Color harmony is about angles on the color wheel.
This generator handles the angles. You pick a base. It produces the rest.
Seven harmony rules, one algorithm
Complementary. The base plus its 180° opposite. High contrast. Good for accents.
Analogous. The base plus hues at ±30°. Low contrast and harmonious. Good for backgrounds.
Triadic. Three colors spaced 120° apart. Vibrant. Balanced.
Split-complementary. The base plus the two neighbors of its opposite. Softer than pure complementary.
Tetradic and Square. Four colors spaced 90° or 180° apart. Use with care. Four hues can overwhelm a UI.
Shades and Monochrome. Same hue at five lightness steps from 88% to 20%. Clean and predictable.
You choose the rule. The math is standard color theory.
Palette sizes from 2 to 8
A brand might need two colors. A UI theme might need nine. This tool supports six sizes: 2, 3, 4, 5, 6, and 8 bars.
Increasing the count adds new colors by advancing the hue by 30°. That is a natural analogous extension. The new color fits the palette.
Decreasing the count removes bars from the right. You can also delete a specific bar to fine-tune the count.
Edit any color four ways
Native color picker. Click the swatch. Your operating system's picker opens.
Hex code. Type #145A8A and the palette updates. Three-digit shorthand works too.
RGB sliders. Drag any channel from 0 to 255. The hex and picker stay in sync.
Eyedropper. Sample any color on your screen. Uses the browser's EyeDropper API.
The panel also shows the nearest CSS named color. If your hex is close to navy, it says "~ navy." That helps when naming variables.
Contrast checks, WCAG-aligned
Every selected color shows its contrast ratio against both white and black. The ratio updates as you move the sliders.
A green badge means the ratio passes WCAG AA for normal text (4.5:1 or higher). Yellow is between 3:1 and 4.5:1. Red is below 3:1.
This is not a full accessibility audit. It is a quick check before you commit a color to a text style.
Export to seven formats
CSS custom properties. --color-1: #061524; and so on. Paste into any stylesheet.
Tailwind config. A ready-to-paste colors.palette block. Drop it into tailwind.config.js.
SCSS variables. $color-1: #061524; for Sass projects.
JSON design tokens. A structured object for design systems and Style Dictionary.
Plain list. One hex per line. For spreadsheets or manual copy-paste.
CSV. Index and hex, ready for import.
Shareable URL. Encodes the whole palette in the query string. Bookmark it or send it to a teammate.
Download as high-resolution PNG
The PNG export renders at 2x for retina displays. Each bar is 400 pixels wide. The strip is 700 pixels tall.
Hex codes are overlaid at the bottom of each bar in auto-contrast pills. Light colors get dark text. Dark colors get light text. The result is readable at any size.
Use it for client proposals, brand guides, or documentation.
Lock colors before you shuffle
Shuffle replaces every color with a new random one. That is useful for exploration. It is a problem when one color is your brand color.
Click the padlock icon on any bar to lock it. Locked bars keep their color when you shuffle. Unlock them when you want them to change again.
Useful when exploring variations around a fixed brand palette.
What this tool does not do
It does not generate full design systems. It generates palettes. Contrast ratios, spacing scales, and typography systems are separate concerns.
It does not simulate how the palette looks on different screens. Colors render differently on OLED phones, TN monitors, and print profiles.
It does not check colorblindness. Deuteranopia and protanopia affect how red and green palettes look. Test with a colorblind simulator if accessibility is a priority.
The eyedropper does not work in Firefox or Safari. The EyeDropper API is limited to Chromium browsers. The button is disabled with a tooltip explaining why.
Privacy and speed
Every color is processed in your browser. No palette, no hex code, and no usage data leaves your device.
Recent palettes and preferences are stored in localStorage on your device. Up to 5 palettes. Clear your browser data and they are gone.
The shareable URL is the only way to move a palette between devices. You control when that happens.
Frequently Asked Questions
How do I generate a color palette?
What harmony rules does the generator support?
Can I export the palette to CSS, Tailwind, or SCSS?
--color-1: #XXXXXX;). Tailwind config with a ready colors.palette block. SCSS variables ($color-1: #XXXXXX;). JSON design tokens. Plain list. CSV. And a shareable URL that encodes the palette as query parameters. Each format has Copy and Download buttons.