Skip to content
Shahariar Niloy, home

Accessibility as a default, not a feature

Semantic HTML, keyboard support, visible focus — and taking this site’s colours to WCAG AAA.

Lighter UI1 min readBy Shahariar Niloy

Accessibility isn’t a sprint at the end. It’s a set of defaults that make the right thing the easy thing.

The defaults

Taking this site to AAA contrast

For this portfolio I checked every text colour against all three surfaces. Muted grey was the main miss: it passed AA but sat around 5.6–6.3:1. Lifting it to #A9AEB7 brought it to 7.4–8.4:1. Score colours, success text and error text got the same treatment, and interactive targets grew to at least 44 × 44px.

Brighter muted text means a little less contrast between “primary” and “secondary” text. Keep headings brightest to hold the hierarchy.

Next postSitemaps that tell the truth