UTILS.
Private by default
◑

Color Palette Generator

Generate complementary, analogous, triadic and tetradic palettes from any base color.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
Click any swatch to copy its hex value.

About this tool

Pick a base color and instantly get harmonious palettes, computed entirely in your browser by rotating the hue in HSL space.

Type a hex value (three or six digits, with or without #) or use the picker; the fields stay in sync when the hex is valid. Four rows appear: complementary (base and +180°), analogous (-30°, base, +30°), triadic (base, +120°, +240°) and tetradic (base, +90°, +180°, +270°). Only the hue rotates; each swatch keeps the saturation and lightness of your color.

An invalid hex shows an error and clears the rows. Color names and rgb() values are not accepted.

Frequently asked questions

How are the palettes calculated?
The base color is converted to HSL and its hue is rotated — 180° for complementary, ±30° for analogous, ±120° for triadic and 90° steps for tetradic.
How do I copy a color?
Click any swatch and its hex value is copied to your clipboard.
What happens with gray, black or white?
They have zero saturation, so rotating the hue changes nothing and each row repeats the same color.
Can I paste a color name or rgb() value?
No. The text field accepts only three- or six-digit hex codes.

More tools