Color Palette Generator
Enter a HEX, RGB, or HSL color and instantly generate harmonious palettes using complementary, analogous, triadic, and other color theory rules. Copy as CSS variables or Tailwind config — everything runs in your browser.
#3C83F6rgb(60, 131, 246)hsl(217, 91%, 60%)#F6AF3Crgb(246, 175, 60)hsl(37, 91%, 60%)
Getting started
How to Generate a Color Palette
- 1 Enter your base color
Type a hex code (e.g. #E85D04), RGB value, or HSL value into the color input. Or click the color swatch to open the native color picker.
- 2 Choose a harmony rule
Click one of the six harmony buttons — complementary, analogous, triadic, tetradic, split-complementary, or monochromatic. The palette updates instantly.
- 3 Review your palette
Each swatch shows its HEX, RGB, and HSL values. Toggle the contrast panel to see WCAG accessibility ratings, or enable color-blind preview to check how the palette looks to users with color-vision differences.
- 4 Copy or export
Click any swatch to copy its color code in your preferred format (HEX, RGB, or HSL). Use the Export button to copy the entire palette as CSS variables, a Tailwind config snippet, or plain text.
- 5 Compare all harmonies
Click “Compare all” to see all six harmony rules displayed at once. Click “Use This” on any row to switch to that harmony.
- 6 Share your palette
Click “Share” to copy a URL that restores the exact palette. Paste it into a message or document to share with colleagues.
Color theory
Harmony Rules Reference
| Rule | Colors | Hue offsets | Best for |
|---|---|---|---|
| Complementary | 2 | 0°, 180° | Maximum contrast; bold, high-energy designs |
| Analogous | 5 | −60° to +60° | Harmonious, low-contrast palettes; natural scenes |
| Triadic | 3 | 0°, 120°, 240° | Vibrant, balanced designs; data visualization |
| Tetradic | 4 | 0°, 60°, 180°, 240° | Rich, complex designs; requires careful balance |
| Split-Complementary | 3 | 0°, 150°, 210° | High contrast with less tension than complementary |
| Monochromatic | 5 | Same hue, varied lightness | Subtle, cohesive palettes; minimal design systems |
Accessibility
Designing Accessible Color Palettes
-
Check WCAG contrast ratios
Toggle the contrast panel to see the WCAG 2.2 ratio for each swatch against a white background. Aim for AA (4.5:1 normal text, 3:1 large text) or AAA (7:1) where possible.
-
Preview for color-blind users
Use the color-blind preview modes (protanopia, deuteranopia, tritanopia) to simulate how your palette appears to users with color-vision deficiencies. Ensure key content is distinguishable without relying on color alone.
-
Avoid hue-only distinctions
Do not rely solely on hue to convey information. Pair color differences with lightness contrast, pattern, shape, or text labels to ensure your design works for all users.
-
Test with real content
Contrast ratios are calculated against white in this tool. Always test your palette with real text and UI components on the actual backgrounds you plan to use in production.