Color Contrast (WCAG) Playground

The neighbourhood head’s kerja bakti notice in a light and a dark theme: type any CSS colour, the browser computes it (see-through ones included), and the…

Why it matters

Low contrast = text unreadable for low-vision users, older people and anyone in the sun. AA (4.5:1) is often an audit and legal requirement. Knowing how it is worked out makes colour choices you can defend, not guesses, in every theme.

The key idea

Contrast is a luminance ratio, not a difference in colour

Common mistakes

Try it in this playground