A free browser-based color harmony tool that generates complementary, triadic, analogous, split-complementary, tetradic, and monochromatic schemes from any base color—with one-click copy for HEX, HSL, RGB, CSS variables, and Tailwind config.

Color Harmony Generator is a free, browser-based tool that takes any base color and instantly calculates the six standard harmony schemes from color theory: complementary, triadic, analogous, split-complementary, tetradic, and monochromatic. Copy any color value in HEX, HSL, or RGB format with a single click, or export the entire scheme as CSS custom properties or a Tailwind config snippet. No signup, no install, no data sent to any server.
Picking a color palette is one of the most time-consuming parts of starting a design or frontend project. Color theory gives clear rules—complementary colors sit 180° apart on the wheel, triadic colors are 120° apart—but translating a brand hex code into a complete, harmonious palette requires either a design tool subscription, a manual hue calculation, or constant searching across scattered browser tabs.
Designers copying values out of Figma still need HEX, HSL, and RGB versions of each color for different contexts: HSL for CSS variables, HEX for design handoff, RGB for opacity-based utilities. Developers need those values formatted for both raw CSS and Tailwind configuration. Most generators give you swatches to look at but no direct path to production-ready code.
Enter any HEX code directly into the text input, or click the color picker to choose visually. The base color drives all six harmony schemes simultaneously. Change the base and every scheme updates instantly—no "generate" button, no page reload.
The current HSL values display next to the picker so you can see where your color sits on the wheel without running a separate conversion.
Six scheme tabs give you different structural relationships between colors:
Each swatch in the active scheme shows the hex value inside the color block. Click the block to copy the hex. Below each swatch, three copy buttons let you grab the color in any format:
#EC4899hsl(330, 81%, 60%)rgb(236, 72, 153)Two export buttons generate production-ready code for the entire active scheme:
CSS Variables:
:root {
/* Complementary scheme — base #EC4899 */
--harmony-1: #EC4899; /* Base */
--harmony-2: #49EC98; /* Complement */
}Tailwind Config:
// tailwind.config.js — extend.colors
// Complementary scheme — base #EC4899
{
"harmony-1": "#EC4899", // Base
"harmony-2": "#49EC98", // Complement
}Both snippets are copied to the clipboard with one click.
A preview strip below the active scheme shows all six schemes simultaneously as horizontal color bars. Each bar is clickable and switches the active scheme. Useful for quick visual comparison across approaches before committing to one.
:root blockextend.colorsAll color calculations are implemented as pure TypeScript functions. No external color library dependencies:
hexToRgb — parses 6-digit hex to {r, g, b}rgbToHsl — converts to {h, s, l} using the standard algorithmhslToRgb — reverses the conversion for swatch renderingrgbToHex — formats back to hex stringshiftHue — rotates hue by degrees for harmony calculationsbuildSchemes — generates all six scheme definitions from a base HSL valueThe monochromatic scheme locks the hue and saturation, stepping through fixed lightness values (20, 40, 55, 70, 85%) to produce a usable light-to-dark scale.
ColorHarmonyTool component manages all stateuseMemo for scheme recalculation on color changeuseCallback for stable event handlersnavigator.clipboard.writeText for all copy operations with sonner toast feedbackToolEvents analytics tracking for color picker, hex input, copy, and export actionsPick your brand's primary color, run it through the generator, and pick a harmony scheme that fits the tone—triadic for expressive brands, analogous for professional ones, monochromatic for clean minimal interfaces. Export to CSS variables and drop them into your design system before writing a line of component code.
A designer delivers a brand color. You need a full palette for primary, secondary, accent, surface, and text roles. The monochromatic scheme gives you a ready-made light-to-dark scale. Complementary or split-complementary gives you accent candidates. Export the scheme as Tailwind config and register the colors in minutes.
You have two colors in a design and they look off. Paste the primary into the generator and check if the secondary matches any harmony scheme. If it doesn't, you can see which color it should be and decide whether to adjust.
The all-schemes preview strip makes the abstract structure of color theory tangible. Shift the base color and watch how all six schemes rotate together. The relationship between complementary, split-complementary, and triadic schemes becomes clear from the visual.
The Tailwind export generates an extend.colors block ready to paste into tailwind.config.js. Each color gets a semantic name (harmony-1 through harmony-N) and a comment identifying its role in the scheme. Rename the keys to match your token naming convention and the palette is production-ready.
Color Harmony Generator removes the manual work from palette building:
Try it now: color-harmony-generator.tools.jagodana.com
The client needed a robust design tools solution that could scale with their growing user base while maintaining a seamless user experience across all devices.
We built a modern application using Color and Design Tools, focusing on performance, accessibility, and a delightful user experience.
Category
Design Tools
Technologies
Date
April 2026
More work in Design Tools