How to create a colour palette for your website, logo and slides
A good palette has one base colour, one or two accent colours and neutrals for text and backgrounds. Derive the accents from the base colour with a colour harmony, split the areas roughly 60 to 30 to 10, and check every text and background pair for enough contrast.
Build a colour palette right here
Choose your base colour and a harmony in the colour picker below. From the suggestions, put together a set of five colours and export it, for example as CSS variables. With an account you can save the set and find it again later.
Step 1: Choose the base colour
Everything starts with one colour. If you already have a logo, sign or letterhead, take the colour from there. How to find its code is in How to find a colour code.
Starting from scratch, a colour that sets you apart matters more than its supposed meaning. Avoid pure, fully saturated screen colours: a blue with a little less saturation looks more grown-up than #0000FF.
Step 2: Find accents with a harmony
Add one or two accent colours to the base. Instead of guessing, use a harmony from the colour wheel:
- Complementary for a strong accent, such as a button that stands out.
- Analogous for a calm, consistent look.
- Triadic for something lively and playful.
What is behind the harmonies is in Complementary colours.
Step 3: Add neutral colours
Most of a website is not colourful: background, text, lines. For that you need neutrals.
- A background that need not be pure white, such as a slightly warm off-white.
- A text colour that need not be pure black, such as a very dark grey.
- Two or three greys for borders, dividers and quiet hints.
Mixing a hint of the base colour into the greys makes the palette feel like one.
Step 4: Assign roles and the 60-30-10 rule
Give every colour a fixed job. That stops the same colour from being a warning in one place and decoration in another.
| Role | For |
|---|---|
| Surface | background, cards |
| Primary | buttons, links, active elements |
| Accent | the few things that should stand out |
| Text | body text, headings |
| Status | error, warning, success |
For the amounts, the 60-30-10 rule from interior design helps: about 60 per cent for the main colour (on websites often the neutral white), 30 per cent for a second colour and 10 per cent for the accent. It is a rule of thumb, not a law.
Keep status colours separate from your brand colour. If your base colour is red, an error message still needs its own clear red, plus an icon.
Step 5: Check contrast and test
- Every text and background pair needs at least 4.5:1, large text and controls at least 3:1. The basics are in Colour contrast and accessibility.
- Look at the page in greyscale once. Can you still tell what matters?
- Test on phone and laptop and, if you offer one, in dark mode. There, colours usually need their own lighter variants.
Hand the palette on
A palette only helps if everyone uses the same values. There are formats for handing it on:
- Website: CSS variables, SCSS or Tailwind.
- Design tools: design tokens as JSON, ASE for Adobe apps, GPL for GIMP and Inkscape.
- Print: CMYK values, but only with your printer’s colour profile. More in RGB vs CMYK.
Write the role next to each code. “Primary: #1E90FF” helps more than a list of five codes.
Frequently asked questions
How many colours does a palette need?
Three to five colours plus neutrals are enough for most websites. More quickly gets busy.
Can I base the palette on my logo?
Yes, that is the best starting point. The logo colour becomes the base colour, and the rest follows from the steps above.
Does the colour have to suit my industry?
Not necessarily. If all your competitors use blue, another colour stands out more. What matters is that it fits what you want to express.
What about dark mode?
Define a second variant for each role. Dark backgrounds need lighter, slightly less saturated colours, and the contrast has to work there too.
More in Colour and design
Complementary colours: what they are and how to find them
Complementary colours sit directly opposite each other on the colour wheel, like blue and orange. In paint, the classic pairs are red and green, blue and orange, yellow and violet. On screen, colours are made of light, so the pairs are red and cyan, green and magenta, blue and yellow.
Read it later?
Tap "Save" at the top. The guide then shows up in your saved guides.