Skip to content

How to Choose Website Colours

A working palette has four colours. How to pick them, the contrast numbers that decide whether people can read your site, and real examples measured against them.

Maker99 teamPublished Updated 7 min read

The Nail studio website, generated by Maker99
Nail studio, a website Maker99 generated from a short description. Select the picture to open the live site.

A website color scheme (colour scheme, in British spelling) needs fewer colours than most people expect: a background, a text colour, one main colour and one accent. The hard part is not choosing pretty ones. It is making sure every line of text stays readable, which the W3C's accessibility guidelines turn into exact contrast ratios you can measure.

This guide shows how to pick the four colours, how to apply the 60-30-10 rule on a web page, and what the contrast numbers look like on two real Maker99 templates, including how dark a pretty pink has to be before white text on it passes. For the wider design picture (type, layout, images), see our guide to AI website design.

The four colours a website color scheme needs

  • Background. The colour behind most of the page, usually very light or very dark.
  • Text. The colour of your words. It must stand out strongly from the background.
  • Main colour. The one people remember, used for buttons, links and key headings.
  • Accent. A second colour, used sparingly for highlights, small icons and details.

That is exactly how Maker99 stores a template's palette: four values called background, text, primary and accent. Our plumber template, for example, uses a pale blue-white background (#F3F8FC), near-navy text (#0F2337), a strong blue main colour (#0369A1) and an orange accent (#F97316 in the template catalogue, deepened to #E56C1D on the site so it reaches 3:1). Tints and shades of these four (a lighter blue panel, a grey line) cover everything else.

The 60-30-10 rule, adapted for websites

The 60-30-10 rule comes from interior design: 60% dominant colour, 30% secondary, 10% accent. On a website it translates roughly as 60% background, 30% text and quiet surfaces such as cards and the footer, and 10% for the main colour and accent together. Treat it as a check, not a law. If your main colour covers a third of the page, nothing on the page stands out any more, including the button you want clicked.

Contrast: the numbers that decide whether people can read it

The Web Content Accessibility Guidelines (WCAG) set three rules worth knowing:

  1. Text contrast (1.4.3): at least 4.5:1 between normal text and its background, and 3:1 for large text. Large means at least 24px, or about 18.5px if bold.
  2. Non-text contrast (1.4.11): 3:1 for the parts of controls people need to see, such as the border of a form field or a focus outline.
  3. Use of colour (1.4.1): colour must not be the only way to show something. A link in body text needs an underline, or a clear contrast difference with the words around it.

We calculated these ratios ourselves with the WCAG luminance formula, using the exact colours from two templates:

Colour pairRatioGood for
Plumber: navy text on background14.9:1All text
Plumber: white on the blue button5.9:1Button labels at any size
Plumber: orange accent (#E56C1D) on background3.0:1Shapes, icons and large text, not body text
Plumber: navy text on an orange button4.9:1Button labels at any size
Nail studio: white on the pink button (#CA3968)4.9:1Button labels at any size
Nail studio: pink links on the background4.55:1Links and small text, only just
Nail studio: dark plum text on pink3.0:1Large or bold labels only
Nail studio: lilac accent (#9281E4) on background3.0:1Shapes, icons and large text
White on a brighter hot pink (#E75480)3.5:1Large or bold labels only
Mid grey #999999 on white2.8:1Fails for text
Grey #767676 on white4.5:1Just passes

Two lessons come out of this table. Bright, saturated colours (orange, pink, lilac, yellow) almost never carry small text on a light background at full brightness. The nail studio's pink only passes because it is a deep raspberry; the brighter hot pink in the last coloured row looks similar and gives white text just 3.5:1. Use bright colours as fills with dark text on top, keep them for decoration, or darken them until they pass. And the classic "pale grey for subtle text" usually fails: #767676 is about as light as grey text on white can go.

Our nail studio template is a fair example of a playful scheme: a pastel pink background (#FFF4F8), plum text (#3A2037), a raspberry pink main colour and a lilac accent. It works because the body text is dark plum on the pale background (13.6:1), so the brighter colours are free to do the decorating. If you adapt a scheme like this, put white labels on the pink buttons, use the lilac for shapes and large headings, and keep paragraphs in the dark text colour.

Choosing your website colour palette

Start from what you already have. If you have a logo, a shopfront, a van or packaging, your main colour is chosen. A website that matches the sign above your door feels like the same business.

If you are starting fresh, pick one main colour first. Look at what others in your trade use and decide whether to match the expectation or stand apart from it. Many trades and accountants use blues and greens; a bakery or a nail studio can be warmer and louder. Neither is right in itself.

Keep text near-black or near-white. Pure black on pure white is harsh on large screens; a very dark navy, brown or plum with a faint tint of your main colour reads better and still scores above 12:1.

Give your brand colour a darker twin. If your brand colour fails 4.5:1 as text, keep it for buttons and shapes and use a darker shade of the same hue for links and small headings.

Decide light or dark. Light backgrounds suit sites with a lot to read: services, prices, articles. Dark backgrounds make photos and video look richer, which is why restaurants, studios and portfolios often use them. Check a dark site on a phone outdoors, where it is harder to read.

Trying palettes without redesigning

In Maker99, each template comes in its original colours plus up to four alternatives, named after the colour the main colour becomes: Rose, Red, Orange, Gold, Green, Teal, Blue or Violet. The plumber template, for instance, offers Violet, Rose, Orange and Green as well as its original blue.

Each alternative turns every colour's hue by the same angle (60, 120, 180, 240 or 300 degrees) in the OKLCH colour space, where the "L" is perceived lightness. A dark text colour stays dark and a light background stays light, so the design keeps its balance.

Perceived lightness and the WCAG formula are not the same measure, though: a teal can look as light as a pink and still measure lighter, which would move the contrast ratios. So Maker99 keeps each colour's WCAG luminance while it turns the hue, then checks every palette: text and the main colour at 4.5:1 or more against the background, the accent at 3:1. On the nail studio, white on the main colour is 4.89:1 on the original pink (#CA3968) and 4.89:1 on the Teal version (#017F75). On the plumber template it stays between 5.9:1 and 6.0:1 across all five palettes. The check covers the palettes Maker99 offers; if you type in your own colours or change them in the downloaded code, run the button text through a contrast checker again.

Common mistakes

  • Five colours of equal weight. Visitors can't tell what matters. Go back to one main colour and one accent.
  • The main colour everywhere. If every heading, box and icon is bright blue, the button is just more blue.
  • White text over busy photos. Add a dark overlay behind the text or move the text off the photo.
  • Links shown by colour alone. Underline links in paragraphs.
  • Judging on one screen. Check on a phone, in sunlight, and with your screen brightness turned down.

Frequently asked questions

How many colours should a website have?

Four core colours (background, text, main, accent) plus lighter and darker shades of them. Most small business sites never need a fifth.

What is the 60-30-10 rule in web design?

A guideline for balance: about 60% background, 30% text and quiet surfaces, 10% main colour and accent. It keeps the colour you want noticed rare enough to be noticed.

How do I check colour contrast?

Paste the two hex codes into any WCAG contrast checker, or use the contrast readout in your browser's developer tools when you inspect text. Aim for 4.5:1 for body text and 3:1 for large text and control borders, as set out in the W3C's contrast guidance.

What colour should buttons be?

Your main colour, with a label that passes 4.5:1 against it, or 3:1 if the label is large and bold. If white fails on your brand colour, try your dark text colour on it instead.

Next step

Pick a template, try its palettes, and run the button colours through a contrast check before you publish. You can start on Maker99 and switch palettes from the template card. For the rest of the build, follow how to create a website with AI, and our planned guide to website accessibility goes beyond colour to headings, alt text and keyboard use.