Worked example: a teal brand colour
Starting from teal #0f766e (hue 186° in OKLCH), the triadic harmony adds hues about 120° and 240° around the wheel: #0f766e, #73598d, #875c2b, #a6c1be, #371d4d, plus a light tint and a dark shade. The complementary harmony gives #0f766e, #90505e, #9ab9b5, #521a29, #002b28: the opposite hue for buttons and highlights, and lighter and darker versions of both for backgrounds and text. White text on the teal itself has a contrast of 5.47:1, enough for body text.
The harmonies
| Harmony | What it does |
|---|---|
| Analogous | Neighbours on the colour wheel (30° apart): calm and natural. |
| Complementary | The base and its opposite (180°): strong contrast for accents. |
| Split complementary | The base and the two colours beside its opposite (150° and 210°). |
| Triadic | Three colours evenly spaced (120° apart): lively but balanced. |
| Tetradic (square) | Four colours 90° apart: rich; let one lead. |
| Monochrome | One hue in different lightness: always matches. |
Using a palette well
A common rule is 60-30-10: about 60% of a page in a neutral or the lightest colour, 30% in a secondary colour, and 10% in the strongest accent, kept for buttons and links. Use the lightest and darkest swatches for backgrounds and text, and test every text and background pair against the WCAG contrast rules. Name colours by their job (primary, accent, surface) rather than by hue, so you can change the palette later without renaming everything.
Why OKLCH
Colour wheels in most tools are based on HSL, which is simple maths on the red, green and blue values of a screen. It doesn’t match how people see: in HSL, pure yellow and pure blue have the same lightness, yet yellow looks far brighter. OKLCH (lightness, chroma, hue), published by Björn Ottosson in 2020 and now part of CSS, fixes that, so stepping the hue by 120° or the lightness by 0.2 gives colours that look equally far apart. Colours that would fall outside what a screen can show are pulled back by reducing their saturation, keeping their hue and lightness.
From palette to website
Once you have five colours, decide their jobs. The darkest usually becomes body text or the footer, the lightest the page background or cards, the base colour the main buttons and links, and the most contrasting one a highlight used sparingly for alerts, badges and calls to action. Export the CSS variables and reference them everywhere instead of typing hex codes, so a later change to the palette updates the whole site at once. Check every text and background pair with the contrast checker before launch: brand colours are often too light for text even when they look strong on a logo. The PNG export is handy for sharing the palette with a designer or a client, or for pasting into a brand guide.
Related tools
- Contrast checker (WCAG)
- Colour palette from an image
- Colour picker from an image
- Email signature generator
Sources
Checked on November 26, 2026:
- Björn Ottosson (2020): A perceptual color space for image processing (Oklab)
- W3C CSS Color Module Level 4: Oklab and OKLCH
- W3C: Understanding WCAG 2.2 success criterion 1.4.3, contrast (minimum)
Frequently asked questions
How do I make a colour palette?
What are complementary, analogous and triadic colours?
Why do the colours look evenly balanced?
How do I use the palette in my website?
Is text readable on these colours?
Can I start from a random colour?
Last updated: 2026-11-26