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
- Complementary: #00ffff.
- Triadic: #ff0000, #00ff00, #0000ff.
- Contrast with white 4.00; with black 5.25.
Result: White on pure red passes for large text but not for body text.
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.