Color Palette Generator
About the Color Palette Generator
This color palette generator turns one base color into a harmonious scheme using six classic color-wheel rules: monochromatic, analogous, complementary, split complementary, triadic and tetradic. Every swatch shows its HEX, RGB and HSL value, and the whole palette can be copied as CSS custom properties or exported as JSON.
How color harmony rules work
Harmony rules rotate the hue of your base color around the 360-degree color wheel while keeping saturation and lightness the same. Complementary adds the color 180° away, triadic adds 120° and 240°, and tetradic (square) adds 90°, 180° and 270°.
Split complementary skips the direct opposite and uses the two hues on either side of it, at 150° and 210°. You keep strong contrast but with less tension than a pure complementary pair.
Analogous picks neighbors at -60°, -30°, +30° and +60°, which gives a calm, low-contrast set. Monochromatic keeps the hue fixed and spreads lightness across five steps from 15% to 85%, placing your base color in the closest step.
Example: palettes from #3b82f6
Starting from the blue #3b82f6 (hsl(217, 91%, 60%)), the complementary partner is an orange near hsl(37, 91%, 60%). A triadic scheme adds a pink-red at 337° and a green at 97°.
Because only the hue moves, every color in a rotated scheme shares the same saturation and lightness. That is why harmony palettes look balanced, but it also means they can share the same contrast problems, so check text and background pairs separately.
HEX vs RGB vs HSL
All three describe the same sRGB colors. HEX (#3b82f6) is compact and common in design files, RGB (rgb(59, 130, 246)) maps directly to screen channels, and HSL (hsl(217, 91%, 60%)) is the easiest to adjust by hand because hue, saturation and lightness are separate numbers.
HSL is handy for theming: keep the hue and saturation, then change only lightness to get hover and pressed states.
Palette tips: 60-30-10 and contrast
A common layout rule is 60-30-10: about 60% of the interface in a dominant color, 30% in a secondary color and 10% in an accent. Most products need only three to five core colors.
WCAG 2.x asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Harmony rules do not guarantee this, so test your final text colors before shipping.
How to Use the Color Palette Generator
- Pick a Base Color with the color picker, or type a HEX, RGB or HSL value into it.
- Choose a Palette Type: Monochromatic, Analogous, Complementary, Split Complementary, Triadic or Tetradic (Square).
- Review the Generated Palette. It updates as soon as you change the color or the type.
- Click a swatch to copy its HEX code, or click the HEX, RGB or HSL line underneath to copy that format.
- Use Copy CSS variables, Copy HEX list or Export JSON to take the full palette into your project.
Frequently Asked Questions
- What is the difference between complementary and split complementary?
- Complementary pairs your color with the hue directly opposite it (180°). Split complementary uses the two hues next to that opposite, at 150° and 210°, which keeps contrast but is easier to balance.
- How many colors does each palette contain?
- Monochromatic, analogous and complementary give five colors, tetradic gives four, and split complementary and triadic give three, including your base color.
- Why are some generated colors too light or too dark?
- Hue-based schemes keep your base color's saturation and lightness. If the base is very light or very dark, every rotated color will be too, so start from a mid-lightness color for the most usable results.
- Do harmony palettes guarantee accessible contrast?
- No. Colors rotated around the wheel can share similar lightness, which gives poor text contrast. Check text and background pairs against WCAG ratios, such as 4.5:1 for body text.
- Can I use the palette in Tailwind or CSS?
- Yes. Copy CSS variables produces a :root block you can paste into a stylesheet, and the HEX values work directly in a Tailwind theme config.
- Are my colors sent to a server?
- No. Palettes are calculated in your browser, and the JSON export is created locally as a download.