How to Choose Website Colours That Work
A colour that looks good on its own can fail on a real site. It may be hard to read in a paragraph, too bright in a button, or lost on a phone in daylight. A good scheme is a small set of deliberate choices that helps people read, find their way around, and trust what they see. Start with purpose, pick one main colour and good neutrals, and test the result on real pages.
1. Start with purpose and audience, not a favourite colour
Decide what the site has to do before you open a picker. Is it for reading articles, selling a product, booking a service, or showing a portfolio? A reading-heavy site needs calm backgrounds and strong text contrast. A shop needs clear buttons and prices. A portfolio can carry a stronger accent, because the work does most of the talking. Think about the reader, too: phone in a hurry, or laptop at work? Note two or three words for the feeling you want — calm, clear, friendly, trustworthy, bold. If a colour does not fit those words, leave it out.
2. Choose one main colour, then build around it with neutrals
Most good websites use one main colour, not five competing ones. It does the recognisable work: logo, key headings, and main buttons. When every section has a different bright colour, nothing stands out. Neutrals do the quiet work: near-whites, light greys, mid-greys, and dark greys for backgrounds, body text, borders, and spacing. Take #5B4BFF, a vivid violet-blue, as the main colour. Pair it with a near-white background such as #F8F8FC, dark text in #12153A, and mid-grey borders such as #D9D9E3. Use the violet-blue sparingly — logo, main buttons, a few links — while neutrals carry the reading. Try an online colour picker for nearby shades, then a colour palette generator for supporting tones.
3. Your brand colour and your text colour are not always the same
A brand colour is chosen to be recognised. A text colour is chosen to be read. Sometimes one colour can do both, but often it cannot. A bright brand colour may suit a logo, yet tire the eye in a paragraph. Here, #5B4BFF works as a brand and accent colour for a logo, button, or short heading. For long text, #12153A is better: a very dark blue-grey, close to black but slightly softer. On a plain #FFFFFF background, #12153A text gives a contrast ratio of 17.59:1, a clear, comfortable result for body text. Body text, captions, and form labels need your most readable colour. Check it with the colour contrast checker, using the exact colours and sizes you plan to use.
4. Use 60-30-10 on a homepage
The 60-30-10 rule keeps a page balanced: roughly 60 per cent main neutral, 30 per cent secondary neutral, and 10 per cent accent. The figures are a guide, not a strict measurement. Colour should be the smallest share. On a homepage, the 60 per cent is the near-white background and white cards. The 30 per cent is light grey section backgrounds, mid-grey borders, dark text, and the darker footer. The 10 per cent is the main colour, used where attention matters: logo, main call-to-action button, a few links, and one highlighted heading. If it feels loud, remove colour from the largest areas first.
5. Design every state, not just the resting page
A scheme is not finished when the page looks good at rest. People click, hover, tap, fill in forms, and sometimes meet an error. Each state needs a colour decision, kept consistent across the site. Buttons need four states: normal, hover (a slightly darker shade, for mouse users), focus (an obvious outline, for keyboard users), and disabled (plainly unavailable, usually pale grey). Links should be recognisable without hovering, often through colour and an underline, and should change clearly on hover and focus. Form fields need a clear border normally, a stronger border when focused, and a distinct error colour paired with an icon or short message, not colour alone.
6. Test on real pages, on a phone, and in dark mode
Swatches are a starting point, not a test. Two colours can look fine side by side and fail in a paragraph or a small caption. Put the colours on real pages, with real text, headings, images, and buttons, and read them as a visitor would. Start with the pages people use most: the homepage, one article or product page, and a contact or checkout page. Read a full paragraph and fill in a form. Then test on a phone, where colours often look different on a smaller, brighter screen. If your site offers dark mode, test it as a separate scheme, not an automatic inversion. It needs its own background, text, border, and accent choices.
7. Keep the scheme consistent with CSS variables
Write the scheme down in one place and use the same values everywhere. On a modern site, that usually means CSS variables: named values for background, text, border, accent, and button colours, defined once and reused across every page. Change the button colour in one place, and every button changes. Give variables clear names that describe their job, such as button colour. Consistency also applies to meaning. If green means success on one page, it should mean success on every page.
A step-by-step checklist
- Note the site's purpose, the visitor's main task, and the feeling you want.
- Choose one main colour, or start with your existing brand colour.
- Choose neutrals: near-white background, dark text, and mid-grey borders.
- Test text on background with the contrast checker, using real text sizes.
- Build a small palette around the main colour, using the colour wheel.
- Apply 60-30-10 to a homepage: mostly neutrals, colour in small amounts.
- Design button, link, hover, focus, and disabled states in your CSS variables.
- Test on real pages, on a phone, and in dark mode if you offer it.
- Save the final palette in one place.
Common mistakes to avoid
Too many bright colours. Five bright colours leave no clear hierarchy. Choose one main colour and let neutrals do the rest.
Light grey text on white. It can look elegant in a mock-up and be hard work in a paragraph.
Choosing colours on one screen only. A scheme chosen on a large monitor can look very different on a phone. Check the main pages on more than one device.
No hover or focus states. If a button looks the same on hover, tap, or keyboard focus, people get no feedback. Design the states at the start.
Using the brand colour for everything. A brand colour is for recognition and emphasis. Used everywhere at once, it loses impact and often readability.
Copying a palette without testing it. A palette that works for another site may not work for yours.
Frequently asked questions
How many colours should a website have? One main colour, one or two supporting colours, and a small set of neutrals is enough for most sites.
Should my website colours match my logo exactly? They should work with your logo, but need not copy it exactly. Choose a separate, more readable colour for body text if the logo colour is too bright or pale.
What is a good background colour for a website? A near-white or white background suits most reading-heavy sites, keeping dark text clear.
How do I know if my text is readable enough? Put the exact text and background colours into a contrast checker, using the real sizes you plan to use, then read a full page on a phone as well as a computer.
Do I need a different scheme for dark mode? Yes. A dark background needs light text, softer borders, and often a lighter version of your accent colour.
Choosing website colours well means making a small set of clear, tested decisions: purpose first, one main colour and strong neutrals, colour used sparingly, every state designed, and real pages tested. Test your own choices with the online colour picker, the colour palette generator, and the WCAG accessibility checker.