Skip to main content
wp-config.org

Search tools

Design

Colour palettes from your brand colour

Enter the colour of your logo or brand and get five palettes built around it from the classic colour harmonies, worked out in the OKLCH colour space so the added colours look evenly balanced. Each one has a dark mode version, contrast checks, a preview on a sample web page and code to copy.

  • Five harmonies
  • Dark mode versions
  • CSS, Tailwind and theme.json

Free, no sign-up. It runs in your browser: your colour is not sent to this site.

Nothing you enter leaves your browser.

This tool runs in your browser and needs JavaScript. Turn JavaScript on and reload the page.

Colour palette generator

What you get

  • Complementary, analogous and triadic palettes

  • Split complementary and monochrome palettes

  • Your colour kept as the primary colour

  • A dark mode version of each palette

  • WCAG 2.2 checks for text and buttons

  • Code for CSS, Tailwind, SCSS and theme.json

How to build a palette from your brand colour

  1. Enter your brand colour

    Type or paste its HEX code, such as #2160e8, or an rgb() or hsl() value, or open the picker beside the field.

  2. Compare the five harmonies

    Each harmony shows its light and dark colours side by side. Press one to see it on a sample web page with its contrast checks.

  3. Copy the palette

    Copy the colour values one by one, or the whole palette as CSS custom properties, Tailwind CSS, SCSS or a WordPress theme.json palette with a dark style.

How the harmonies are made

Each harmony has five colours: a near-white background and a near-black text colour with a hint of your colour’s hue, your colour itself, and two colours the harmony chooses. The added colours keep your colour’s lightness and are a little less colourful, so your colour stays the most colourful one and becomes the primary colour, for buttons and links.

  • Complementary: the hue opposite yours, 180° round the colour wheel, plus a pale tint of it for cards.
  • Analogous: the hues 30° either side of yours.
  • Triadic: the hues 120° and 240° round from yours.
  • Split complementary: the hues 150° and 210° round, either side of the opposite.
  • Monochrome: two more shades of your colour, one lighter and one darker; for a very dark colour both are lighter, and for a very light colour both are darker.

Why OKLCH instead of HSL

Most colour wheels use HSL, where equal steps of hue do not look equal: greens take up a large slice and blues a small one, and a yellow and a blue with the same HSL lightness look nothing alike. The harmonies here turn the hue in OKLCH, a colour space from CSS Color 4 built to match what the eye sees, so a 120° step looks like an even step and the added colours sit at the same visual lightness as yours. Where a turned colour is too colourful for a screen to show, it is made a little less colourful until it fits.

Dark mode and contrast

Each palette gets a dark version worked out the same way as in the palette library: a very dark background with a hint of its hue, a near-white text colour, and the brand colours made lighter only as far as needed to stand out on the dark background. The checks use the WCAG 2.2 contrast ratio, as the colour contrast checker does. If your brand colour is light, such as a yellow, the light version’s primary colour check may fail: keep the colour for fills and use a darker shade for text and buttons.

Frequently asked questions

Which harmony should I choose?

For a calm, professional site, try analogous or monochrome: the colours sit close together. For a site that needs to stand out, try complementary or triadic. Split complementary is a middle ground. Look at the sample page in light and dark before you decide, since a harmony can look different on a page than as swatches.

My brand colour is grey or black. Why do the harmonies look alike?

A grey has no hue, so there is nothing to turn round the colour wheel: every harmony comes out as shades of grey that differ only in lightness. Enter a colour with some colour in it, or pick a palette from the library that has your grey in it with the Contains a colour like filter.

Will my brand colour be changed?

Not in the light version: your exact colour is in every harmony, as its primary colour unless it is a grey or almost white or black. In the dark version it keeps its hue and colourfulness but may be made lighter, so it stands out on the dark background. The values table shows both, so you can see exactly what changed.

Can I share a palette?

Yes. Press Copy link to this palette: the link holds your brand colour and the harmony you chose, so it opens the same palette for whoever you send it to. Nothing is stored on this site; the colour is only in the link.

Is my brand colour sent to this site?

No. The harmonies are worked out in your browser. Your colour is added to this page’s address so the link reproduces the palettes, which means the address reaches the site like any page request when the page is reloaded or the link is opened. The site counts that the tool was used, never which colours. The privacy policy has the details.

Related tools

  • Colour contrast checker

    New (added recently)

    Check the contrast of text and background colours against WCAG 2.2 AA and AAA, with suggested passing colours and a palette checker.

  • Favicon generator

    New (added recently)

    Make favicon.ico, Apple and Android icons and a web app manifest from your logo or a letter, in your browser.

  • Web font previewer

    New (added recently)

    Preview 60 popular web fonts in every weight, see heading and body pairings, and copy the code for Bunny Fonts, Google Fonts or WordPress.

  • Create a WordPress child theme with style.css, functions.php and a ZIP download.