Design

Contrast

Contrast is the difference between a colour and the one behind it. It decides whether text can be read in sunlight, on an old phone, and by ordinary eyesight.

Also called colour contrast, contrast ratio, legibility

SiiteWritten by SiiteUpdated September 10, 2026

Contrast is the difference between one colour and the colour behind it. It decides whether text can be read at all, and it decides what a visitor notices first. Those are two different jobs carried by one word, which is part of why it is discussed loosely and got wrong often.

In short

  • Body text needs 4.5 to 1 against its background, large text 3 to 1.
  • Pale grey on white is the most common failure on business websites.
  • Contrast also creates hierarchy, so it decides what is read first.
  • The real test is a phone at half brightness, outdoors.

Two jobs, one word

The first job is legibility. Letters have to be distinguishable from what sits behind them, and there is a measurable threshold below which a proportion of readers cannot do it. This is not a matter of taste and it is not negotiable per design.

The second job is prominence. An element that differs from its neighbours is noticed before them, which makes contrast one of the levers that builds visual hierarchy. A single dark button on a page of light text is read early for no reason other than difference.

The confusion arises because the two pull in the same direction most of the time and occasionally apart. A muted colour palette can be perfectly harmonious and still fail the legibility threshold, and a page where everything has maximum contrast is legible while telling the eye nothing about what matters.

The ratio, and the numbers

Contrast is measured as a ratio between the relative brightness of two colours, running from 1 to 1 for identical colours up to 21 to 1 for black on white.

The accessibility standard sets three thresholds worth remembering.

  • 4.5 to 1 for body text. Ordinary paragraph text against its background.
  • 3 to 1 for large text. Roughly 24 pixels and above, or 19 pixels when bold.
  • 3 to 1 for meaningful non-text. Button edges, form field borders, icons that carry information rather than decoration.

Two things about those figures get misread. They are floors rather than goals, so a page sitting at exactly 4.5 has passed a minimum and not achieved good practice. And they say nothing about the size at which text is comfortable, only about whether the colours are separable, so an adequately contrasted paragraph in tiny type is still hard to read.

Decorative elements are exempt, which is the loophole that gets abused. A decorative shape can be any colour you like. Placeholder text inside a form field, a disabled button that people are expected to understand, and a caption under a photograph are not decoration, whatever the design system calls them.

Where pale text fails first

Contrast problems do not appear evenly. They appear for specific people in specific conditions, which is why they survive internal review.

  • Outdoors. Sunlight on a phone screen destroys low contrast entirely, and a great deal of browsing here happens outside or in a vehicle.
  • On older and cheaper screens. A pale grey that separates cleanly on a new laptop merges into the background on a five year old handset.
  • At reduced brightness. Phones dim themselves to preserve battery, and a screen at thirty percent is a different screen.
  • For older eyes. Contrast sensitivity declines with age well before anybody considers themselves visually impaired, so a threshold that feels generous to a designer in their twenties is not generous to the customer deciding whether to place an order.
  • For colour blindness. Common enough among men to matter in any customer base, so information carried by colour alone reaches fewer people than intended.

The pattern in that list is that nobody in the room when the design was approved was in any of those conditions. A designer on a calibrated screen indoors is the least representative viewer the page will ever have, which is covered from the wider angle under user experience.

Contrast that does not rely on colour

Colour is one way of creating difference and it is the weakest one, because it is the property most likely to be unavailable to a given reader.

Weight, size, spacing and position all create contrast without depending on hue at all. A heavier line of text stands out on a monochrome screen, in print, and to somebody who cannot distinguish red from green. This is the same principle that makes a one-colour version of a logo a required deliverable rather than an afterthought.

The practical rule is that colour may reinforce a message and must not be the only thing carrying it. A form field marked as wrong by turning red is invisible to some of your customers. The same field marked with red, a border change and a line of text is readable by everybody, and it takes no more work to build.

Charts and status indicators are where this is ignored most often. A graph with five lines distinguished only by colour, or a table where availability is shown as a green or red dot, carries information some readers cannot retrieve. Labels, patterns and shapes solve it, and they also survive the page being printed in black and white.

Fixing it once

Contrast is unusually cheap to fix, because the values live in one place on almost every site.

Decide the text colour, the background, the button colour and the link colour once, check each pairing against the thresholds, and record them in your brand guidelines so the next supplier does not reinvent them. Most sites need four or five approved combinations, not a palette of twenty.

Then run the physical test, because the numbers do not catch everything. Open the most important page on a phone, drop the brightness to half, and walk outside. Read the body text, find the main button, and fill in the first field of the form. Anything that takes a second attempt is a problem for a customer who has less patience than you do.

Words you will hear

  • Contrast ratio. The measured difference between two colours, from 1 to 1 up to 21 to 1.
  • Relative luminance. The brightness value the ratio is calculated from.
  • Large text. Roughly 24 pixels, or 19 when bold, where the threshold relaxes to 3 to 1.
  • Non-text contrast. The requirement covering borders, icons and controls.
  • Decorative. Exempt from the thresholds, and a category frequently claimed for things that carry meaning.
  • Visual hierarchy. The order attention is spent in, which contrast helps set.

If you only change one thing, darken your body text. Pale grey paragraphs are the single most common contrast fault on Philippine business websites, and correcting them costs one line in a stylesheet.

To check a brand colour before it reaches a button, our free palette generator prints the ratio under every swatch it produces.

Questions we get

More about contrast

What contrast ratio does text need?

The accessibility standard asks for 4.5 to 1 for ordinary body text against its background, and 3 to 1 for large text, which means roughly 24 pixels or 19 pixels when bold. Buttons, form borders and icons carrying meaning need 3 to 1. Those are minimums rather than targets, and comfortable reading usually sits well above them.

Is pale grey text on white really a problem?

Yes, and it is the most common one on business websites. Light grey on white can look refined on a designer's screen in an air-conditioned office and become unreadable on a phone held outdoors. It also fails first for older customers, which for most businesses is a substantial share of the people you want to reach.

Can I have too much contrast?

For large areas, yes. Pure black text on pure white at full brightness is harsh over long passages, and some readers find it tiring. The usual fix is a very dark grey on an off-white rather than reducing the difference far enough to cause a legibility problem. Interface elements and headings can take the maximum.

Does this apply to text on photographs?

It applies more strictly, because the background changes behind every letter. Text over an image needs either a solid panel underneath it, a gradient overlay dark enough across the whole area the text covers, or a version of the image with a deliberately quiet region for the words to sit in.

How do I check it?

Browser developer tools report the ratio for any text you inspect, and any contrast checker will do the same from two colour values. The faster physical test is to open the page on a phone at half brightness and walk outside. Anything you cannot read in the first second is failing for somebody.

Is this only about accessibility?

No. Contrast is also what creates rank on a page: an element that differs from its neighbours is read first, whatever its size. So the same lever that decides whether text is legible also decides what a visitor notices, which is why it is worth getting right for commercial reasons as well as ethical ones.

What about dark mode?

The same ratios apply and the same faults appear in reverse, with mid grey text on a dark grey panel being the usual failure. Pure white on pure black is also uncomfortable for long text, so a slightly softened white on a very dark grey is the common choice.

Put this to work

Guides that use this

Free step by step guides for owners doing the work themselves. No sign up and no email required.

Want this handled for you?

Let us take contrast off your desk.

The guides and these pages are yours to use for nothing. When you would rather have the work done properly than done by you, tell us what is already in place and we will put a proposal together.

or call +63 2 5323 8174