Color Palette Generator
Generate harmonious color palettes using HSL color theory. Pick a base color and a harmony type.
hsl(271, 91%, 65%)
rgb(168, 85, 247)
hsl(271,91%,65%)
rgb(168,85,247)
Base
hsl(91,91%,65%)
rgb(163,247,85)
Complement
| Swatch | HEX | HSL | RGB |
|---|---|---|---|
| #A855F7 | hsl(271, 91%, 65%) | rgb(168, 85, 247) | |
| #A3F755 | hsl(91, 91%, 65%) | rgb(163, 247, 85) |
About this tool
The Color Palette Generator creates harmonious color schemes from any base color using color theory relationships. Choose from complementary, analogous, triadic, split-complementary, tetradic, and monochromatic harmonies. Each palette shows HEX, RGB, and HSL values ready to copy.
When to use it
- โPicking a cohesive UI color scheme from a brand's primary color
- โGenerating accessible foreground/background color pairs
- โCreating theme variables for design systems and CSS custom properties
- โExploring complementary accent colors for data visualizations
Tips
- โStart with a mid-range saturation (40-60%) for the base โ extreme saturation makes harmonics look garish.
- โMonochromatic palettes (same hue, varied lightness) are the safest for UI backgrounds and text.
- โTriadic palettes (3 colors 120 degrees apart) create vibrant contrast โ use one as dominant, one as accent, one as neutral.
Frequently asked questions
What is color theory and how does it apply to UI design?
Color theory is the study of how colors relate to each other and affect human perception. It describes which colors look harmonious together (based on their positions on the color wheel) and how color choices affect mood, contrast, and readability. In UI design, color theory guides palette selection to ensure brand colors, backgrounds, text, and accents work together without clashing.
What is the difference between complementary and analogous colors?
Complementary colors sit opposite each other on the color wheel (e.g. purple and yellow). They create strong contrast and visual tension โ effective for call-to-action buttons and emphasis. Analogous colors are adjacent on the wheel (e.g. blue, blue-green, green). They are naturally harmonious and calming โ good for backgrounds and multi-element layouts.
How do I create accessible color combinations?
WCAG 2.1 requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18px+ or 14px+ bold). Use your palette colors for text/background pairs and verify the contrast ratio with an accessibility checker. Generally: dark text on light backgrounds or light text on dark backgrounds. Mid-range colors (50% lightness) are hardest to make accessible on either.
What is the 60-30-10 rule for color usage?
The 60-30-10 rule is a design guideline for distributing colors in a composition. 60% is the dominant color (usually neutral: white, gray, dark background). 30% is the secondary color (brand or complementary). 10% is the accent color (draws attention to CTAs and key UI elements). This ratio creates visual balance while giving highlights enough contrast to stand out.