Colour in Web Design: Hierarchy, Type and Contrast Tips

Colour in Web Design

Two decisions shape how a page feels before anyone reads a word of it. Colour and type. They are also the two most likely to be settled by taste in a meeting and never examined again.

Colour in web design does more than decorate. It signals what is interactive, what is urgent, what belongs together and what can be ignored. Type does the same work through size, weight and spacing. Get both right and a page explains itself. Get them wrong, and people work harder than they should to find what they came for.

Colour in Web Design: Hierarchy, Type and Contrast Tips

1. Hierarchy is the actual job

Every page has a rank order, whether or not anyone designed one. The reader’s eye finds the biggest, boldest, most saturated element first and moves outward from there.

The practical test is to squint at a screen until the words blur. What still stands out? If the answer is a decorative banner rather than the thing you want people to do, the hierarchy is working against you.

Three levers do most of this work: size, weight and space. Colour is the fourth, and it is the one most often asked to do the job alone. It should not be, for reasons that become obvious the moment somebody cannot distinguish your two shades of green.

2 .Never let colour carry meaning by itself

If a required form field turns red and nothing else changes, a person with a colour vision difference has no idea which field failed. Around one in twelve men and one in two hundred women have some form of colour vision deficiency, so this is a common case rather than an edge one.

Pair colour with a second signal every time. An icon, a label, a border change, a position shift. The colour becomes reinforcement rather than the only channel.

3. Contrast has a number, not an opinion

WCAG 2.1 sets measurable thresholds. At WCAG 2.1 Level AA, body text needs a contrast ratio of at least 4.5:1 against its background, and large text needs 3:1. Interface components and meaningful graphics need 3:1.

Those numbers settle most arguments. Light grey text on white is a recurring casualty, and so is white text on a mid-tone brand colour that looked fine in the brand guidelines and fails on a phone in daylight.

Check the states as well as the resting colour. Hover, focus, and disabled styles all need to remain distinguishable, and focus indicators in particular are frequently designed away.

WCAG 2.1 AA infographic of each level.

4. Typography techniques that carry weight

Set body text at a size people can read without leaning in. Around 16 to 18 pixels suits most screens, and line length is more important than most teams expect: somewhere near 60 to 75 characters keeps the eye from losing its place on the return sweep.

Line height does quiet work. Roughly 1.5 for body copy gives text room to breathe. Tighter than that and paragraphs turn into a block.

Limit yourself to two typefaces, or one with a range of weights. Every additional family is another font file to download, and each weight and style is a separate request.

Contact Agnikii Digital, Award-winning Sustainable Web Design Agency

5. Fonts have a delivery cost

This is where design and performance meet. A page that loads four custom font families in six weights is downloading a substantial amount of data before the first sentence appears, and reducing that supports both a faster experience and lower estimated digital carbon. Environmental figures remain modelled rather than directly measured, so treat the carbon side as a direction rather than a precise claim.

Practical steps: subset fonts to the characters you actually use, serve modern formats, and set a sensible fallback so text stays readable while a custom face loads. A system font stack costs nothing to download and is a legitimate choice rather than a compromise.

Our sustainable web design work treats these as the same decision rather than competing ones.

Building a palette that survives contact with a real site

Start with fewer colours than you think you need. A primary, a neutral range and one accent will build most interfaces. Add colours when a specific job requires one, not in advance.

Define semantic roles rather than shade names. “Danger” and “success” survive a rebrand; “the orange one” does not.

Test the palette in context before signing it off. Colour behaves differently at small sizes, in dark mode, against photography and on a poorly calibrated screen. A palette that only works on the designer’s monitor is not finished.

Most common questions

01

How much does colour in web design affect usability?

Considerably, when it carries information. Colour that indicates state, grouping or priority directly affects whether people can complete a task. Colour used purely decoratively affects mood and brand perception, which is real but much harder to measure, so be sceptical of confident claims about specific shades driving specific behaviours.

02

What contrast ratio do I actually need?

Aim for 4.5:1 on body text and 3:1 on large text and interface components to meet WCAG 2.1 Level AA. Check hover, focus and disabled states too, since those are commonly missed. Automated checkers catch most failures but cannot judge whether text over a photograph stays readable across the whole image.

03

How many fonts should a website use?

One or two families is usually enough, using weights for variation rather than adding families. Each additional family and weight is a separate download that delays text rendering. If you need more than two, question whether the hierarchy problem is really a typographic one.

04

Does dark mode need a different palette?

It needs adjusted values rather than a separate palette. Pure white text on pure black causes visual fatigue for many readers, so slightly softened values usually read better. Contrast ratios must be rechecked, because a pairing that passes in light mode can fail when inverted.

05

Should I use a system font stack instead of custom fonts?

It is a reasonable choice when reading speed and page weight matter more than a distinct typographic voice. System fonts load instantly and render reliably. The trade-off is that your pages look more like everyone else's, which may or may not cost you anything.

06

How do I test colour and typography properly?

Check on a real phone in daylight, at the smallest text size you ship, with a contrast checker, and with browser zoom at 200 per cent. Include someone who uses a screen reader or keyboard navigation if you can. A design that survives those four conditions is usually sound.