Fixed-price website design from £2,400View Prices

Website Colour Schemes: How to Choose Colours for a Website

How many colours a website needs, how to build a palette from a brand colour and how to make sure everyone can read the result.

Visual Style and Trends guide. 7 minute read, with a live example. Updated .

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.

RoleWhat it is forTypical choice
BackgroundThe page itself and large surfacesWhite, off-white or a very dark neutral
TextHeadings and body copyNear-black on light, or near-white on dark
Brand colourIdentity: the logo, key headings and highlightsThe main colour of the brand
AccentButtons, links and anything that should be clickedA 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.

Live example
60%DominantThe background and large surfaces.
30%SecondarySections, cards, the header and the footer.
10%AccentButtons and links.
Three blocks sized in a 60-30-10 ratio, using the white background, the dark green brand colour and the orange accent from the example palette later in this guide. The accent takes the least room and still draws the eye, which is the point of the rule.

Building a Palette From a Brand Colour

  1. Start with the brand colour, if there is one. If there is not, choose it with the audience and the sector in mind.
  2. Choose the neutrals: a background and a text colour. Tinting them very slightly towards the brand colour makes the whole scheme feel related.
  3. 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.
  4. Generate lighter and darker versions of each for hover states, borders and backgrounds.
  5. 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:

SchemeHow it is builtCharacter
MonochromaticTints and shades of one hueCalm and cohesive. Needs strong contrast in lightness.
AnalogousNeighbours on the colour wheelHarmonious and gentle
ComplementaryOpposites on the wheelHigh energy. Best with one colour dominant and the other as the accent.
TriadicThree colours evenly spacedLively. 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.

ContentMinimum contrast ratio
Body text4.5 to 1
Large text: about 24 pixels and above, or 19 pixels and above in bold3 to 1
Icons, form field borders and other interface elements3 to 1
Logos and purely decorative elementsNo 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);
}
A small palette as custom properties, named by role and not by colour, so that the values can change without renaming anything.

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.

Want a Website Built This Way?

DigitalPod designs and builds websites for startups and growing UK businesses, with everything handled in-house from the first sketch to launch. Startup website design starts from £2,400, or you can read what clients say in our Trustpilot reviews.

Get a quote

Related Web Design Techniques

More from our web design techniques guides. For costs, briefs and choosing a designer, see the startup blog.