How to Build a Colour Palette: Harmony and Contrast

Last updated: · 2 min read

Choosing matching colours is geometry more than taste: colours rotated by certain angles on the wheel look balanced. The tool builds palettes and shades from your colour, with HEX, RGB, HSL, contrast ratios and CSS variables.

Formula

Complementary: H + 180° · Analogous: H ± 30° · Triadic: H + 120°, 240° · Tetradic: steps of 90°
Contrast = (L1 + 0.05) ÷ (L2 + 0.05)

L is relative luminance (WCAG). Body text needs 4.5, large text 3.

What the inputs mean

Base colour
Colour picker or HEX code.

Worked example: #ff0000 red

  1. Complementary: #00ffff.
  2. Triadic: #ff0000, #00ff00, #0000ff.
  3. Contrast with white 4.00; with black 5.25.

Result: White on pure red passes for large text but not for body text.

🎨 Colour Palette Generator

Free, no sign-up; your data stays in your browser.

Open the calculator →

How to read the result

Use dark shades for text and mid shades for accents; do not rely on colour alone.

Common mistakes

  • Combining many saturated colours.
  • Judging contrast by eye only.
  • Reusing the same colours in dark mode unchanged.

Frequently asked questions

How do I copy a colour?

Click the swatch; the HEX code is copied.

What is HSL?

Hue, saturation and lightness, convenient for rotation.

Is my text readable?

Check the ratio: 4.5 or more for body text.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Sources

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice