All projectsLet’s talk about your project 
Web design
Brand studio
Change the colours and fonts, and watch a web page change with them.

Loading the demo…
What it is
Your brand choices are applied to a sample page, which you can view on desktop or on mobile.
How it’s built
The tool computes the contrast of each pair of colours to check that the text stays readable.
Try this
Press “Surprise me”, then switch to mobile.
At a glance
- Contrast checked for every colour
- Mobile preview
For the curious: built with
- TypeScript
- Canvas
- WCAG
Under the hood
The problem
Picking a brand colour without making the text unreadable.
How I solved it
- Contrast is computed with the formula from the web accessibility guidelines (WCAG). The tool measures the brightness of each colour, then the ratio between the two.
- When a colour is too pale or too dark to work as a link, the tool darkens or lightens it step by step until it reaches 4.5 to 1, the recommended minimum.
- On a button, the text switches to white or black, whichever reads better.
The catch
The ratio shown is rounded down. A colour at 4.49 never shows up as passing.
