Skip to content
YouNeed Tools
Free VPN

Colour Palette Generator

Start from your brand colour or a random one, pick a colour harmony, lock what you like and export the palette for your website or design tool.

Press the space bar for a new palette. Locked colours stay.

Harmony

Neighbours on the colour wheel (30° apart): calm and natural.

  • #2563EB

    rgb(37, 99, 235)

    hsl(221, 83%, 53%)

    White text 5.16:1 · black 4.06:1

  • #1D7AA2

    rgb(29, 122, 162)

    hsl(198, 70%, 37%)

    White text 4.81:1 · black 4.35:1

  • #7A49DF

    rgb(122, 73, 223)

    hsl(260, 70%, 58%)

    White text 5.46:1 · black 3.84:1

  • #169AA3

    rgb(22, 154, 163)

    hsl(184, 76%, 36%)

    White text 3.39:1 · black 6.18:1

  • #8E099D

    rgb(142, 9, 157)

    hsl(294, 89%, 33%)

    White text 7.84:1 · black 2.67:1

Export as

Generated on your device.

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

HarmonyWhat it does
AnalogousNeighbours on the colour wheel (30° apart): calm and natural.
ComplementaryThe base and its opposite (180°): strong contrast for accents.
Split complementaryThe base and the two colours beside its opposite (150° and 210°).
TriadicThree colours evenly spaced (120° apart): lively but balanced.
Tetradic (square)Four colours 90° apart: rich; let one lead.
MonochromeOne 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

Sources

Checked on November 26, 2026:

Frequently asked questions

How do I make a colour palette?
Pick one colour you are sure of, such as your logo colour, and choose a harmony. The generator adds four colours that relate to it by their position on the colour wheel. Lock the ones you like and press New palette (or the space bar) to replace the rest.
What are complementary, analogous and triadic colours?
Complementary colours sit opposite each other on the colour wheel and give strong contrast. Analogous colours are neighbours and feel calm. Triadic colours are three evenly spaced hues, lively but balanced. Tetradic uses four hues at right angles, and monochrome uses one hue at different lightness.
Why do the colours look evenly balanced?
The palette is built in OKLCH, a colour space designed so that equal steps look equal to the eye. In the older HSL model, a yellow and a blue with the same “lightness” look very different in brightness, so palettes built with it often look uneven.
How do I use the palette in my website?
Copy the CSS variables into your stylesheet, or the Tailwind block into your configuration (v3) or CSS (v4), then use the colours by name. The JSON export gives HEX, RGB and HSL for design tools and scripts.
Is text readable on these colours?
Each swatch shows its contrast with white and black text. For body text you need at least 4.5:1; check exact pairs with the contrast checker.
Can I start from a random colour?
Yes. New palette picks a random base colour of medium lightness and saturation, unless the first colour is locked.

Last updated: 2026-11-26