Color Palette Generator
Generate harmonious color palettes with color theory, lock favorites, and export as CSS, SCSS, JSON, or Tailwind. 100% client-side.
:root {
--color-primary: #14E155;
--color-secondary: #14E1BC;
--color-accent: #14A0E1;
--color-muted: #1439E1;
--color-surface: #5514E1;
}About Color Palette Generator
Color palettes are the foundation of good design — they set the mood, guide attention, and create visual hierarchy. Professional designers use color theory to build palettes: analogous colors sit next to each other on the wheel (harmonious), complementary colors are opposite (high contrast), triadic colors form a triangle (balanced), and tetradic uses two complementary pairs (rich and varied). This tool generates palettes based on these rules, lets you lock colors you like, and shuffle the rest to explore variations. You can export your palette as CSS custom properties, SCSS variables, JSON, or a Tailwind config snippet — ready to drop into any project. Everything runs in your browser.
How It Works
- Choose a harmony rule: Analogous, Complementary, Triadic, Tetradic, Monochromatic, or Split-Complementary.
- Click "Generate" to create a fresh palette, or pick a base color from the color picker.
- Click the lock icon (🔒) on colors you want to keep; shuffle only updates the unlocked ones.
- Export as CSS, SCSS, JSON, or Tailwind config — copy or download.
✨ Key Features
- ✓6 color harmony rules (analogous, complementary, triadic, tetradic, monochromatic, split-complementary)
- ✓Live color picker for the base color
- ✓Lock individual colors while shuffling
- ✓Click any swatch to copy its HEX
- ✓Export as CSS custom properties
- ✓Export as SCSS variables
- ✓Export as JSON
- ✓Export as Tailwind config snippet
- ✓Shows HEX, RGB, and HSL for each color
- ✓Random palette generator
- ✓100% client-side — no data sent to any server
🎯 Common Use Cases
- →Designing a color palette for a new website or app
- →Building a design system color scale
- →Creating a brand color palette
- →Choosing colors for a presentation or poster
- →Exploring color combinations for illustration
- →Generating CSS variables for a project
- →Creating a Tailwind theme color set
- →Learning color theory by experimenting
💡 Advanced Tips & Pro Insights
- ▸Analogous palettes (colors next to each other on the wheel) create calm, harmonious designs. Complementary palettes (opposite colors) create high contrast and energy.
- ▸The 60-30-10 rule: use 60% dominant color, 30% secondary, and 10% accent. This works for almost any palette.
- ▸For accessibility, ensure contrast between text and background is at least 4.5:1 (WCAG AA). Darker colors work better for text on light backgrounds.
- ▸Modern CSS custom properties (--color-primary: #hex) make palettes easy to theme. Export as CSS to get them ready to paste.
- ▸Lock 1–2 colors before shuffling when you want to keep a brand color while exploring accents.