In short
- Most websites need fewer colours than people expect: a neutral background, a text colour, one brand colour and one accent.
- The 60-30-10 rule is a useful starting point: a dominant neutral, a secondary colour and a small amount of accent.
- Contrast matters more than hue. Text needs a contrast ratio of at least 4.5 to 1 against its background.
- Reserve the accent colour for the things you want clicked, or it stops pointing at anything.
- Build the palette as a small set of named values, so that it stays consistent and can support a dark theme later.
Colour is the first thing people notice about a website and the part business owners most often want to discuss. It is also where a design most easily goes wrong: too many colours, text that cannot be read, a brand colour used so heavily that nothing stands out.
A good colour scheme is mostly a matter of restraint and arithmetic. You need very few colours, clear rules about where each one is used and enough contrast for everybody to read the page.
How Many Colours Does a Website Need?
Fewer than you think. A complete palette for most business websites has four roles.
| Role | What it is for | Typical choice |
|---|---|---|
| Background | The page itself and large surfaces | White, off-white or a very dark neutral |
| Text | Headings and body copy | Near-black on light, or near-white on dark |
| Brand colour | Identity: the logo, key headings and highlights | The main colour of the brand |
| Accent | Buttons, links and anything that should be clicked | A colour that stands out from the rest |
Around these sit a few supporting shades: a slightly different background for alternate sections, a border colour, a muted text colour for captions, and the functional colours for success, warning and error messages. They are variations, not additions. A site with nine unrelated colours does not look richer. It looks undecided.
The 60-30-10 Rule
The 60-30-10 rule comes from interior design and translates well to screens. About 60 per cent of the page is the dominant colour, usually the neutral background. About 30 per cent is the secondary colour: coloured sections, cards, the header or the footer. The remaining 10 per cent is the accent, used for buttons and links.
The numbers are a guide, not a measurement. The principle is that proportions create hierarchy. When one colour clearly dominates and the accent is scarce, the accent has power. When three colours share the page equally, they fight.
Building a Palette From a Brand Colour
- Start with the brand colour, if there is one. If there is not, choose it with the audience and the sector in mind.
- Choose the neutrals: a background and a text colour. Tinting them very slightly towards the brand colour makes the whole scheme feel related.
- Choose an accent. A colour well away from the brand colour on the colour wheel will stand out. If the brand colour is itself vivid, it can be the accent, with neutrals doing the rest.
- Generate lighter and darker versions of each for hover states, borders and backgrounds.
- Test every combination of text and background for contrast before using it.
The traditional colour harmonies are a useful way to find colours that sit well together:
| Scheme | How it is built | Character |
|---|---|---|
| Monochromatic | Tints and shades of one hue | Calm and cohesive. Needs strong contrast in lightness. |
| Analogous | Neighbours on the colour wheel | Harmonious and gentle |
| Complementary | Opposites on the wheel | High energy. Best with one colour dominant and the other as the accent. |
| Triadic | Three colours evenly spaced | Lively. Hard to balance without a dominant neutral. |
Contrast and Readability
The most common fault in website colour is text that is hard to read: pale grey on white, white on a bright button, words over a photograph. It affects everyone in poor light or on a cheap screen, and it excludes people with low vision altogether.
The Web Content Accessibility Guidelines set measurable minimums. Contrast is expressed as a ratio between the lightness of two colours, from 1 to 1, which is no difference at all, up to 21 to 1, which is black on white.
| Content | Minimum contrast ratio |
|---|---|
| Body text | 4.5 to 1 |
| Large text: about 24 pixels and above, or 19 pixels and above in bold | 3 to 1 |
| Icons, form field borders and other interface elements | 3 to 1 |
| Logos and purely decorative elements | No requirement |
- Check contrast with a free checker, either online or in your browser's developer tools.
- Test text over images at the lightest and darkest parts of the image, and add an overlay if it fails.
- Never use colour as the only signal. An error should have an icon or text as well as red, and a link within a paragraph should be underlined or otherwise marked.
- Remember that a significant minority of people, most of them men, have some form of colour vision deficiency, most often difficulty telling red from green.
What Colours Communicate
Colours carry associations, and it is sensible to be aware of them. Blue is widely used by banks, insurers and software companies because it reads as steady and trustworthy. Green suggests nature, health and money. Red signals urgency, appetite and error. Black and gold suggest luxury. Orange and yellow feel energetic and affordable.
These are conventions, not laws, and they vary between cultures and sectors. What matters more is fit and difference: a palette should suit what the business sells and distinguish it from the competitors a customer will see beside it. If every accountant in the town uses navy blue, a confident deep green may serve better than one more navy. Colour is usually settled as part of the brand, which our guide to startup branding covers.
Putting the Palette Into CSS
Define each colour once, as a named custom property, and use the names everywhere. Changing a colour then means changing one line, and a dark theme becomes a second set of values for the same names.
:root {
--colour-background: #ffffff;
--colour-surface: #f4f6f8;
--colour-text: #1c2430;
--colour-text-muted: #55606e;
--colour-brand: #14532d;
--colour-accent: #c2410c;
--colour-border: #d5dbe3;
}
body {
background: var(--colour-background);
color: var(--colour-text);
}
.button-primary {
background: var(--colour-accent);
color: #ffffff;
}
a {
color: var(--colour-accent);
}Name the properties by what they do, such as accent or surface, not by what they look like. A property called blue that has to become green in a rebrand is confusing for as long as the site lasts. Newer colour formats such as oklch() are supported in every current browser and make it easier to produce lighter and darker versions that look evenly spaced. Our guide to dark mode shows how the same names support a second theme.
Common Colour Mistakes
- Too many colours. Every added colour weakens the others.
- The accent used everywhere. If headings, icons, borders and buttons are all the accent colour, the button no longer stands out. Our guide to visual hierarchy explains why.
- Low-contrast text. Fashionable pale grey text fails a large number of readers.
- Pure black on pure white. Maximum contrast can feel harsh over long passages. A very dark grey on an off-white is easier on the eye and still far above the minimum.
- Text over busy photographs. Without an overlay, some part of the text is always unreadable.
- Relying on colour alone. Status shown only by red or green is invisible to some visitors.
- Choosing colours on one screen. Check the palette on a phone, a laptop and a cheap monitor, in daylight.
Putting It Into Practice
Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.
Frequently Asked Questions
How many colours should a website have?
Most websites work best with three or four: a neutral background, a text colour, a brand colour and an accent for buttons and links, plus a few lighter and darker variations. More than that tends to weaken the hierarchy and make the design look busy.
What is the 60-30-10 rule in web design?
It is a guideline for proportions borrowed from interior design. About 60 per cent of the page uses the dominant colour, usually a neutral, about 30 per cent uses a secondary colour and about 10 per cent uses an accent. Keeping the accent scarce is what makes it noticeable.
What is the best colour scheme for a website?
There is no single best scheme. The right one suits the business and its audience, sets the site apart from competitors and gives every piece of text enough contrast to be read easily. A simple palette used consistently beats an elaborate one.
What contrast ratio does website text need?
The accessibility guidelines ask for at least 4.5 to 1 between body text and its background, and at least 3 to 1 for large text and for interface elements such as icons and form borders. Free contrast checkers will measure any pair of colours.
Should my website colours match my logo?
They should be built from it. The logo's main colour usually becomes the brand colour of the site, supported by neutrals and one accent. If the logo's colours fail contrast checks as text or buttons, use them for larger shapes and choose darker or lighter versions for text.