EN, Change language
Englishالعربية
BH-020

Colours stay within the official palette: brand #012E5D, accent #C63B2B, the greys and the status colours.

The requirement

Colours stay within the official palette: brand #012E5D, accent #C63B2B, the greys and the status colours.

Why it matters to users

Colours outside the official palette make the site look out of step with other government sites, and can quietly lower contrast. A person with low vision who relies on status colours, such as red for an error, is confused when colours change meaning from page to page.

How to fix it

Replace hard-coded colours with the official --bh-* variables (--bh-brand, --bh-accent, the greys and the status colours), and drop any colour that has no token in the system palette. Then scan again.

How we measure it

Coloured backgrounds and buttons (by area), text colours (by characters) and link colours checked against the --bh-* tokens (ΔE ≤ 5); the three shares averaged, off-palette colours listed.

Its official source

Related rules

Colours within the palette · Bahrain BH-020 | xfix