Web Development

Designing for Accessibility From the Start: Contrast, Focus States and Forms

Most accessibility failures are design decisions that are cheap to get right early and expensive to fix later. Here is what WCAG 2.2 asks for in colour contrast, focus states and forms, and how we build it into a design system from the first screens.

Alphabet chart with large black letters on white beside coloured pencils and a tablet

Accessibility is usually treated as a test at the end of a project. A tool is run against the finished site, it reports low-contrast text, missing focus outlines and unlabelled form fields, and the fixes collide with a design everyone has already approved. The brand colour turns out to be unreadable on white, the elegant borderless inputs cannot be seen, and the agreed budget is gone.

In our website design work we deal with these decisions in the design files rather than in a remediation backlog. Three areas cause most of the problems we find on existing sites, and all three are cheap to get right early and expensive to retrofit: colour contrast, focus states and forms. This article covers what WCAG 2.2 asks for in each and how we build it into a design system from the first screens.

Why Start in Design Rather Than Development

Most accessibility failures are visual decisions. A developer cannot fix a palette where every accent colour fails contrast, or a form layout that relies on placeholder text instead of labels, without changing the design. When those decisions are made accessibly in Figma, the build simply follows them, and the cost of accessibility is close to zero.

There are legal reasons too. In the EU, the European Accessibility Act has applied since June 2025 to many consumer-facing services, including e-commerce; the UK has its Equality Act duties and public sector regulations; and accessibility claims against websites are common in the United States. WCAG 2.2 level AA is the usual reference point. Take legal advice on your own obligations, but designing to AA is a sound default for any business site.

Colour Contrast: Build the Palette Around It

WCAG sets clear minimums:

  • Body text needs a contrast ratio of at least 4.5:1 against its background.
  • Large text, roughly 24px regular or about 19px bold and above, needs at least 3:1.
  • Interface components and meaningful graphics, such as input borders, checkbox outlines, icons that carry meaning and chart lines, need at least 3:1 against adjacent colours.
  • Colour must not be the only signal. Links within text, required fields, errors and chart series need a second cue such as an underline, an icon, a label or a pattern.

The practical approach is to check contrast when the palette is defined, not page by page. For each brand colour we produce a small scale of tints and shades and record which combinations pass for text, for large text and for components. Often the brand colour itself works for large headings and backgrounds, while a darker shade of it carries buttons and links. Those approved pairings become design tokens, so nobody has to remember them.

Common traps include light grey placeholder and helper text, white text on mid-tone brand buttons, text over photographs without an overlay, and hover states that drop below the minimum.

Focus States: Design Them Like Any Other State

Keyboard users, switch users and many screen reader users move through a page with the Tab key, and the focus indicator is their cursor. WCAG 2.2 requires that focus is visible (2.4.7) and, new in 2.2, that the focused element is not entirely hidden behind sticky headers, cookie banners or chat widgets (2.4.11).

How we handle it:

  • Design a focus state for every interactive component in the design system, alongside hover, active, disabled and error, so it is reviewed like everything else.
  • Use a strong, consistent indicator, typically a solid outline of 2px or more with an offset, meeting 3:1 against the background. A two-tone ring, a dark outline with a light halo, stays visible on both light and dark sections.
  • Use the :focus-visible selector in the build, so the indicator appears for keyboard navigation without showing a ring on every mouse click, which is the usual reason designers ask for outlines to be removed.
  • Plan the tab order in the layout: it should follow the visual order, menus and modals should trap and return focus correctly, and a skip link should let users jump past the navigation.
  • Size targets properly. WCAG 2.2 also introduces a minimum target size of 24 by 24 CSS pixels (2.5.8), which mainly affects small icon buttons and tightly packed links.

Getting focus management right in menus, modals and custom widgets is as much a build task as a design one, which is why our designers work closely with the front-end development team on component behaviour.

Forms: Where Accessibility and Conversion Agree

Forms are where accessibility problems cost the most, because a form someone cannot complete is a lost enquiry or sale. Almost every accessibility requirement here also makes forms easier for everyone:

  • Visible labels above every field. Placeholder text is not a label: it disappears as soon as someone types, is usually too faint, and is not reliably announced by all assistive technology.
  • Input borders that meet 3:1 contrast, so fields can be found at all. Borderless fields on a pale background are a frequent failure.
  • Hints before the field, not after the error. Password rules and date formats belong next to the label, connected to the input with aria-describedby.
  • Errors that are specific and connected. Say what is wrong and how to fix it (3.3.1 and 3.3.3), show it next to the field, link it programmatically, and do not rely on a red border alone. On longer forms, an error summary at the top with links to each field helps keyboard and screen reader users.
  • Autocomplete attributes on name, email, address and phone fields (1.3.5), so browsers and password managers can fill them.
  • No re-entering information already given in the same process (3.3.7), and no login steps that depend on memorising or transcribing codes without allowing paste or a password manager (3.3.8).
  • Grouped choices, with radio buttons and checkboxes inside a fieldset with a legend, so the question is announced with the options.
  • Careful use of disabled buttons. A greyed-out submit button gives no reason why it is disabled. Letting people submit and then explaining what is missing is usually clearer.

Our article on design that converts covers the wider conversion side of forms and calls to action.

Checking the Result

Automated checkers such as axe and Lighthouse are valuable for catching contrast failures and missing labels at scale, but they detect only part of the problem. Every project should also be tested by hand:

  1. Complete every key journey using only the keyboard.
  2. Run through forms and navigation with a screen reader, such as NVDA on Windows or VoiceOver on macOS and iOS.
  3. Zoom to 200 per cent and check the layout at narrow widths, where content should reflow without horizontal scrolling.
  4. Re-check contrast whenever new colours or components are added.

Accessibility also has to survive content editing. On WordPress, editor-friendly blocks with accessible patterns built in work better than open-ended page builders, a point we expand on in custom WordPress themes versus page builders; our WordPress development and custom web development teams build components that way.

If you are planning a new site or want an existing design checked against WCAG 2.2 before it is built, get in touch with your designs or site address and we will review contrast, focus and forms with you.

Frequently Asked Questions

Does accessible design have to look plain?

No. Accessibility constrains a few specific things, mainly contrast between text and background, visible focus indicators and clear form labels. Within those limits there is plenty of room for strong typography, imagery, colour and motion. Brand colours that fail as text can still be used for large headings, backgrounds and illustrations, with a darker shade carrying body links and buttons.

Is an accessibility overlay or widget enough to meet WCAG?

We do not recommend relying on them. Overlays that add toolbars or try to repair a page automatically cannot fix underlying problems such as missing labels, poor focus order or inaccessible custom widgets, and some interfere with the screen readers people already use. Fixing the design and code itself is the dependable route to conformance.

Can an existing website be made accessible without a full redesign?

Often, yes. Contrast can be fixed by adjusting colour tokens, focus styles and form labels can be added in the theme, and most structural issues are fixable in templates. A redesign becomes worth considering when the visual identity itself fails contrast throughout, or when the site is built with tools that make accessible markup very hard to produce.

Which WCAG level should a business website aim for?

Level AA of the current version, WCAG 2.2, is the usual target and the reference point for most regulations and procurement requirements. Level A alone leaves out important requirements such as text contrast, while full AAA conformance is not generally recommended as a site-wide goal, although individual AAA criteria can be worth adopting where they suit your audience.

How often should accessibility be checked after launch?

Whenever templates, components or colours change, and at least once or twice a year as a broader review. New content is the most common source of regressions, such as images without alt text, headings used for styling or embedded third-party widgets, so editor guidance and automated checks in the publishing process help keep the site accessible between reviews.

How We Can Help

Services Related to This Article

The work we do with the technologies discussed above — with pricing, process and real examples on each page.

  • Website Design

    Modern, responsive UI/UX design that communicates your value in seconds and guides visitors toward taking action.

  • Front-End Development

    Pixel-accurate, accessible front ends built from your designs with HTML5, CSS3, JavaScript, Tailwind or Bootstrap — responsive on every device.

  • WordPress Development

    Custom WordPress themes, plugins and WooCommerce builds that are fast, secure and genuinely easy for your team to manage.

  • Custom Web Development

    Bespoke websites and web applications engineered around your workflows — fast, secure, and built to scale with your business.

In Practice

Case Studies on This Topic

Projects where we put these ideas to work, each with a live demo.

  • House Interior — HomeNest
    • WordPress
    • Custom Theme
    • HTML5

    Website Design & Development

    HomeNest – Responsive Furniture Website

    A modern, fully responsive website for a home furniture brand, designed to showcase products beautifully on every device.

Keep Reading

  • Code editor with schema markup beside a builder project panel listing Webflow, Wix, Squarespace and migration steps

    Moving From Wix or Squarespace to WordPress Without Losing Rankings

    Rankings rarely drop because of WordPress itself, but because of what gets lost between platforms. Here is how we inventory what ranks, get content out of Wix and Squarespace, keep or redirect every URL, and handle DNS and email at launch.

  • Person working at a workbench with a hammer, pliers, screwdrivers and other hand tools laid out

    What a Website Maintenance Retainer Should Include

    Maintenance retainers with the same name can cover completely different work. Here is what the agreement should commit to in writing, from tested updates and restorable backups to response times, hacked-site cover, hours and a clean exit.

  • Illustration of a support specialist with a headset at a laptop, surrounded by email, phone, chat and contact icons

    Website Contact Forms That Stop Sending: Causes and Fixes

    A broken contact form still shows a thank-you message while the enquiry disappears. Here is how we find where submissions stop, the email, browser and server causes we see most, and how to make sure the next failure is noticed quickly.

Let’s Connect

Let’s Build Something Amazing Together

Share your project details and our experts will get back to you within one business day with the best solution — free consultation, no obligation.