Color Scheme Generator: Complementary, Triadic & Analogous
Pick a base color and get 5 harmonious colors: analogous, monochromatic, complementary, triadic or tetradic. Preview them on a site, export CSS or JSON.
Updated November 2026
Reviewed by Rafael Duarte
Base Color
Harmony Rule
Global Refinement
Assign Roles
Drag swatches → drop on a card · drag cards to swap · to pick any color
Primary
#197FE6
Secondary
#1461B8
Accent
#F59E0B
Background
#FFFFFF
Surface
#F5F7FA
Text
#111827
Build products
your users love
The fastest way to ship your next project with a polished design system and production-ready components.
Popular Palettes
Brand Palettes
How this color scheme generator works
One base color, one harmony rule, five colors out
1. Pick a base color
Under Base Color, click the swatch to open the color picker or type a 6-digit hex code into the field.
2. Choose a harmony rule
Analogous, Monochromatic, Complementary, Triadic or Tetradic. The five colors update as soon as you switch.
3. Refine and export
Adjust Saturation and Luminance under Global Refinement, then export as CSS Variables, JSON or Download PNG.
What this color scheme generator does
Color-wheel rules applied for you, not guessed by eye
5 harmony rules, 5 colors per scheme
Analogous, Monochromatic, Complementary, Triadic and Tetradic, always calculated from the hue of your base color.
Global Saturation and Luminance sliders
Saturation runs from 0 to 100% and Luminance (HSL lightness) from 5 to 95%. Both move the whole scheme at once without changing the distance between hues.
Regenerate while keeping the rule
Regenerate picks a new random base hue, keeps the rule and your slider settings, and saves the previous scheme to History (up to 10 entries).
3 export formats
CSS Variables and JSON export the 6 design-system roles (role, hex, RGB and HSL in the JSON). Download PNG saves a strip with the 5 scheme colors and their hex codes.
Role assignment with a site preview
Drag any swatch onto the Primary, Secondary, Accent, Background, Surface or Text card and see it applied in the Site Preview: navbar, hero, feature cards, offer bar and footer.
20 ready-made palettes
Popular Palettes has 5 editor themes (Dracula, Nord, Catppuccin, Tokyo Night, Gruvbox) plus Pastel Dream, Sunset, Forest, Warm Earth and Neon City. Brand Palettes has 10 more inspired by Spotify, Netflix, Google and others.
The five harmony rules explained
What each rule puts in the 5-color strip
When you'll reach for this tool
The scenarios that come up most often for people building interfaces
UI design systems
Build a scheme from your brand's primary color, arrange the roles and export the 6 CSS variables (--color-primary to --color-text) for a component library.
Brand identity exploration
Try analogous, complementary and triadic schemes against a logo color to see which direction feels right. If your reference is a photo, the color palette from image tool pulls the colors out of it.
Dark mode theming
Use Monochromatic with low luminance to build background, surface and muted tones that stay coherent across a theme.
Design token pipelines
The JSON gives each role its role, hex, rgb and hsl. It isn't the format of any particular token tool, but it's easy to map into one.
Quick mockups and pitches
Load a popular or brand-inspired preset, adjust the roles and check the result on a landing page layout in the Site Preview, no design tool required.
Common mistakes
Confusing analogous with monochromatic
Analogous shifts the hue in small steps around the wheel; monochromatic keeps the hue fixed and only varies lightness.
Using Tetradic without a clear hierarchy
The richest harmony needs one dominant color with the others in a supporting role. Treat them all as equals and the result looks noisy.
Assuming History keeps everything
Only Regenerate saves the current scheme to History, and it keeps the last 10. Changing the base color, rule or sliders by hand saves nothing, and reloading the page clears History. Copy the CSS or JSON for anything you want to keep.
Changing a role color without checking contrast
The pencil on each role card accepts any color, and the tool doesn't measure contrast. For generated schemes, Text is #111827 or #F9FAFB depending on the primary's lightness. Check text against background in the color contrast checker: normal text needs 4.5:1 for WCAG AA.
Expecting the export to follow the swatch order
CSS Variables and JSON use the 6 role cards (Primary, Secondary, Accent, Background, Surface, Text), not the 5-color strip. If you drag colors to other roles, the export follows. Download PNG is the one that saves the 5-color strip.
Why use this color scheme generator
It answers "what colors go with this one?" with color-wheel rules (analogous neighbors, complementary opposites, triadic and tetradic splits) instead of guesswork.
The global Saturation and Luminance sliders move the whole scheme from vivid to muted, or from light to dark, in a couple of drags without breaking the spacing between hues.
It goes past generating: spread the colors across 6 design-system roles by drag and drop and see them on a sample site before you export. This tool starts from one color; to pull a palette out of a photo, use the color palette from image tool.
Frequently asked questions
Color harmony is the use of mathematically defined relationships between hues on the color wheel to build balanced palettes. Harmonious palettes are easier for the eye to process and read as intentional and professional, even without any formal design training.
Analogous shifts the hue in 30° steps around the base color while keeping saturation and lightness the same, for a cohesive, low-contrast look. Monochromatic keeps the exact same hue and only varies lightness, from pale tints to dark shades.
Type its hex code under Base Color and switch between rules: Analogous gives soft neighbors, Complementary gives the opposite for contrast, and Triadic and Tetradic give more colorful mixes. Each rule returns 5 colors with their hex codes; click a swatch to copy it.
The complement sits 180° away on the hue wheel. Choose Complementary: the middle swatch is the pure complement, flanked by a lighter and a darker version of it, and the last swatch is an accent at +30° from the base.
Three hues spaced evenly, 120° apart on the color wheel, which gives a vibrant but balanced mix. Here the Triadic rule shows the base, +120° and +240°, plus two less saturated in-between colors at +60° and +300° to round out the 5 swatches. Those two extras aren't triadic themselves.
They apply to every color in the scheme at once. Saturation (0 to 100%) controls intensity, with 0% producing gray. Luminance (5 to 95%) is HSL lightness, not relative luminance: it makes the scheme lighter or darker. When you enter a new base color, both sliders jump to that color's own saturation and lightness.
Regenerate saves the current scheme to History (up to 10 entries) before drawing a new one. Manual changes don't go into History, and it's cleared when you reload the page. To keep a scheme for good, copy the CSS or JSON export.
The strip always has 5 colors, calculated by the harmony rule. From them the tool builds 6 design-system roles: Primary, Secondary and Accent come from the scheme, while Background, Surface and Text are derived from the primary (or picked from the lightest and darkest colors when you load a preset).
CSS Variables gives a :root {} block with 6 variables, --color-primary through --color-text, using whatever is assigned to each role card. JSON has the same 6 roles with hex, rgb and hsl. Download PNG saves an image of the 5 swatches with their hex codes. Shift+Enter copies the export as long as the cursor isn't in a text field.
Further reading
Related Tools
- Color Palette from Image: Extract HEX, RGB & HSL Codes Design Upload a photo or logo and extract 3 to 12 dominant colors as HEX, RGB and HSL. Export CSS variables, Tailwind, JSON or PNG. Nothing leaves your browser.
- DESIGN.md Generator Design Create AI-ready DESIGN.md files for Google Stitch, Claude Code, Cursor, and Copilot — define colors, typography, spacing, and components for AI tools.
- Hex Color Picker with Eyedropper: HEX, RGB & HSL Codes Design Pick a color or grab any pixel on screen with the eyedropper, then copy HEX, RGB or HSL. Includes CMYK, LAB, shades, harmonies and WCAG contrast.
- Color Contrast Checker: WCAG AA/AAA & Color Blindness Design Check if text and background pass WCAG 2.2 AA and AAA, get the nearest passing text color and preview 4 types of color blindness. Free, in your browser.
- HEX to RGB Converter with HSL & CMYK Values Design Paste a HEX code and copy its RGB, HSL and CMYK values instantly, with 4 harmony colors, a contrast check against white and CSS palette export.