Color Palette Generator

Pick a base colour and instantly get 5 tints, 5 shades, thecomplementary colour and 2 analogous colours — each swatch shows its HEX with a one-click copy, all in your browser.

HEX

Tints (lighter)

Shades (darker)

Complementary

Analogous

🔒 100% private — runs in your browser, never uploaded.

How to use the palette generator

Choose a starting colour with the picker, or type a HEX value such as #4F46E5 into the box. The moment you change it, the swatches below update with a full set of related colours. Hover any swatch and hit Copy to put its HEX on your clipboard, ready to paste into CSS, a design tool or your code.

What each group means

The colour maths, briefly

Every calculation runs through the HSL colour model — hue, saturation and lightness. Your HEX colour is converted to HSL, and from there the tool adjusts only what it needs to. For tints and shades it keeps the hue and saturation fixed and walks the lightness up toward 95% or down toward 8% in even steps. For the complementary and analogous colours it rotates the hue while leaving saturation and lightness alone, then converts everything back to HEX. Working in HSL is why the results feel like a coherent family rather than random colours.

Is it private?

Yes — this is a privacy-first tool. There is no upload, no account and no tracking of your colours. The conversion code lives in the page and runs entirely on your device, so it is fast and works offline once loaded.

Tips for building a usable palette

A solid scheme rarely needs more than a base, one accent and a spread of neutrals. Pick your brand colour as the base, borrow the complementary as a single accent for buttons and links, and use the tints and shades to build a gentle scale for surfaces and text. If a pairing feels too loud, try an analogous colour instead of the complementary — it lowers the contrast while staying in the same mood.

Frequently asked questions

Can I enter a 3-digit HEX like #abc?

Yes. Short HEX codes are expanded automatically, so #abc becomes #AABBCC before the palette is built.

How many colours do I get?

Thirteen in total: 5 tints, 5 shades, 1 complementary and 2 analogous, plus your base colour shown above.

Does it work offline?

Yes, once the page has loaded everything runs locally in your browser.