A colour palette generator builds matching colours from a base colour using colour-wheel rules: complementary (opposite, 180°), analogous (neighbours, ±30°), triadic (three colours 120° apart) and tetradic (four colours 90° apart). It also makes lighter tints and darker shades for backgrounds, borders and text.
How colour harmonies work
Colour harmonies come from the colour wheel. Each one takes your base colour's hue and adds colours at fixed angles around the wheel, keeping the same saturation and lightness so they sit well together.
| Harmony | Angles | Feel |
|---|---|---|
| Complementary | 0°, 180° | High contrast, good for calls to action |
| Analogous | −30°, 0°, +30° | Calm and natural |
| Triadic | 0°, 120°, 240° | Lively and balanced |
| Split-complementary | 0°, 150°, 210° | Contrast with less tension |
| Tetradic | 0°, 90°, 180°, 270° | Rich; needs one dominant colour |
Building a website palette
- One brand colour for buttons, links and key highlights.
- Its tints and shades for backgrounds (50–100), borders (200–300), hover states (600–700) and dark text (800–900).
- One accent from the harmony for badges, sale tags or charts.
- Neutral greys for most text and surfaces.
- Check contrast. Body text needs at least 4.5:1 against its background. Light brand colours often fail on white; use a darker shade for text.
The 60-30-10 rule
A simple way to use a palette without it looking busy: about 60% of the page in a neutral or very light colour, 30% in a secondary colour, and 10% in your strongest accent for buttons and key links. Keeping the accent rare is what makes it stand out.
Choosing a brand colour
- Start from what you have. If you already have a logo, use its main colour as the base.
- Check it on white and black. A brand colour that can't carry white text makes buttons hard to read.
- Look at your competitors. Use the Website Technology Checker or just their sites to avoid looking the same.
- Plan for dark mode. The lighter end of your scale (200–400) usually works for accents on dark backgrounds.
Why contrast matters
Low-contrast text is hard to read in sunlight, on cheap screens and for anyone with low vision, and people leave pages they can't read. The WCAG contrast ratio runs from 1:1 (same colour) to 21:1 (black on white). The generator flags each colour as AAA, AA, AA for large text only, or failing. To convert a colour between HEX, RGB and HSL, use the HEX to RGB Converter.