A colour can look premium in a logo and still fail when it becomes small text, a button label or a thin form border. Readability depends on the foreground and background combination, the text size, the component state and the real device on which a customer sees it.

This is not an instruction to replace a brand palette. It is a method for assigning each colour a safe job. One green may work for a large heading but not for small text on white. The same green may work as a button background only when the label, border and focus state are tested.

The checks below are based on WCAG 2.2. Meeting a few numerical thresholds does not guarantee that every person will find a page easy to use, so combine automated contrast checks with zoom, keyboard and real-device testing.

Test colour pairs, not isolated brand swatches

Contrast is a relationship between a foreground and its adjacent background. A hex value cannot pass or fail alone. Test the exact pair used in the component: label against button, paragraph against page background, placeholder against input background, icon against its card, and focus outline against the colours touching it.

List the combinations actually used on the website instead of testing only the brand guide. Include the normal, hover, focus, selected, error and disabled states. A component can pass in its default state and become unreadable when a lighter hover colour appears or when the button is placed over a photograph.

Test the final CSS colours. Do not estimate from a screenshot because compression, display settings and anti-aliasing can alter what the eye sees. Keep a small approved table of foreground and background pairs so future pages reuse combinations that have already been checked.

Give normal text at least 4.5:1 contrast

WCAG 2.2 Success Criterion 1.4.3 requires a contrast ratio of at least 4.5:1 for normal text and images of text at Level AA. Large-scale text requires at least 3:1. The thresholds are minimums, not values to round up: a calculated 4.499:1 does not meet a 4.5:1 requirement.

Apply the check to navigation labels, service descriptions, prices, form labels, validation messages, placeholders, footer links, language controls and text shown on hover or keyboard focus. Small grey text on white and green text on black may look elegant but still need measurement.

Logotypes are exempt from this particular text-contrast criterion, but the exemption does not automatically cover the navigation, tagline, button or contact details beside the logo. Treat an exemption as a narrow rule, not as a reason to make the brand harder to read.

  • Normal text: at least 4.5:1.
  • Large-scale text: at least 3:1.
  • Test the exact foreground and background pair.
  • Do not round a failing result up to the threshold.

Buttons, fields, icons and states need visible boundaries

WCAG 2.2 Success Criterion 1.4.11 requires visual information needed to identify active user-interface components and their states to have at least 3:1 contrast against adjacent colours. The same minimum applies to parts of graphics required to understand the content, subject to the criterion’s exceptions.

Test more than the button label. A form field may need a visible border; a checkbox needs a visible outline and checked state; a menu icon needs to remain identifiable; a selected payment method needs a clear state; and a keyboard focus indicator must be distinguishable from the background it touches.

If a control is visible only because of a faint shadow, remove the shadow temporarily and see whether the control can still be located. Do not rely on a browser or device to rescue a custom design after the default outline has been removed.

  • Check the control boundary, not only its label.
  • Check selected, error, open and focused states.
  • Check icons and meaningful chart lines.
  • Inactive controls can have different rules, but should not be confused with active ones.

Do not make colour the only carrier of meaning

WCAG 2.2 Success Criterion 1.4.1 says colour must not be the only visual means used to convey information, identify an action, request a response or distinguish an element. A red border alone is not enough to explain a form error. Add an error message and, where useful, an icon or text label.

The same rule matters in service and payment flows. Do not show a successful payment only by turning a dot green. Add “Payment received.” Do not distinguish Somali and English tabs only by colour. Add a visible label and selected state. Do not show availability with green and red circles alone. Add “Available” and “Unavailable.”

This improves clarity for people who cannot distinguish certain colours, but it also helps anyone using a low-quality screen, bright sunlight, battery-saving display settings or a page printed in greyscale.

Let customers zoom text to 200% without losing the task

WCAG 2.2 Success Criterion 1.4.4 requires text, except captions and images of text, to be resizable up to 200% without losing content or functionality. The test is not complete if only the home-page heading survives. Navigation, forms, payment cards, modal windows, cookie notices and sticky contact bars must remain usable.

At 200% zoom, look for clipped prices, buttons whose labels disappear, text hidden under a sticky bar, fields that cannot be reached, horizontal scrolling in two directions and dialogs that cannot be closed. Test both desktop zoom and mobile text-size settings where possible.

Run the test in Somali and English. A translation may be longer than the original label, and a design that fits “Pay” may fail with a longer instruction. Let text wrap, give controls enough height, avoid fixed-height cards for variable content and keep close buttons reachable.

  • Zoom every page type, not only the homepage.
  • Complete a real task at 200%, such as sending a form.
  • Check sticky bars and modal close buttons.
  • Repeat the test in both site languages.

Use a repeatable audit before approving a new page

Start with the highest-risk paths: navigation, service cards, price and duration, sign-in, form validation, payment choice, WhatsApp contact and the footer. Record every failing pair with the component, state, foreground colour, background colour and required ratio. Fix the design token or reusable component when possible instead of patching one page.

Use an automated contrast checker to find candidate failures, then verify the component manually. Continue with keyboard navigation, 200% zoom and a real phone in bright and dim conditions. Automated tests cannot decide whether colour is the only carrier of meaning or whether a visible label is understandable.

Approve the page only after the task can be completed in both languages. Keep the result with the design system: approved text pairs, button pairs, border colours, focus colour and examples of error and success states. When the brand palette changes, rerun the audit instead of assuming the old approval still applies.

  • Measure the exact colour pair and component state.
  • Check normal text, large text and non-text controls against the correct threshold.
  • Add text or shape when colour carries meaning.
  • Complete keyboard and 200% zoom tests in Somali and English.
  • Document approved combinations for reuse.
READ THE ORIGINAL SOURCES

Sources & further reading

Put the next step into practice.

Tell me about your business and we can discuss a practical plan.

Let’s talk on WhatsApp