Color Palette Generator
Generate harmonious color palettes from a base color.
Build harmonious palettes from a base color using complementary, analogous, triadic, tetradic and monochrome rules.
Loading the interactive tool… This page needs JavaScript to run the Color Palette Generator.
How to use Color Palette Generator
- Choose your colors or values.
- Preview the result live.
- Tweak until it looks right.
- Copy the CSS or code into your project.
How Color Palette Generator works
Pick a base color and a harmony rule, and the tool converts the color to HSL and rotates the hue to build the set. Choices are complementary (180 degrees), analogous (minus and plus 30), triadic (120 and 240), tetradic square (90, 180, 270), split-complementary (150 and 210) or a monochromatic scale at six lightness steps from 15% to 90%. Each result is a hex code you can copy, and saturation and lightness stay the same except in monochromatic mode.
Worked example
Input base color #ff0000 with the Triadic scheme → Output Base #ff0000, Triadic +120° #00ff00 and Triadic +240° #0000ff, with the note that the base is hsl(0, 100%, 50%).
Common uses
- Choosing accent colors for a new brand or landing page from one main color.
- Building a monochromatic set of light-to-dark tones for backgrounds and borders.
- Checking whether two colors are true complements before using them side by side.
Best for
- brand and web design
- UI mockups
- presentations and posters
Tips for better results
- Check text contrast with the Color Contrast Checker.
- Check color contrast for accessibility.
- Test designs on light and dark backgrounds.
- Keep a copy of final values in your design system.
Frequently asked questions
What is a complementary color?
A color on the opposite side of the color wheel, which creates strong contrast.
Can I copy the codes?
Yes, each swatch has a HEX value you can copy with one click.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Related tools
- RGB to HEX Converter — Convert RGB values to HEX and HSL with a color preview.
- Color Shades Generator — Generate a 10-step tint and shade scale from any color.
- Box Shadow Generator — Design CSS box shadows visually and copy the code.
- CSS Border Radius Generator — Design rounded corners per corner and copy the CSS.
- CSS Clamp Generator — Create fluid font sizes with the CSS clamp() function.
- CSS Gradient Generator — Create linear and radial CSS gradients with ready-to-copy code.