πŸŒ“
πŸ”˜

Design Accessible Button Colors

Make sure CTAs, action buttons, and links pass WCAG against their backgrounds.

Hakuna kuingia kinachohitajika

Large heading text

Medium body text (18px) for reading and content.

Normal body text (16px) for paragraphs.

Small body text (14px) for captions and metadata.

14.63:1

Contrast ratio

βœ“WCAG AA β€” Normal text

Requires 4.5:1 Β· You have 14.63:1

βœ“WCAG AA β€” Large text

Requires 3.0:1 Β· You have 14.63:1

βœ“WCAG AAA β€” Normal text

Requires 7.0:1 Β· You have 14.63:1

βœ“WCAG AAA β€” Large text

Requires 4.5:1 Β· You have 14.63:1

βœ“UI components / graphical objects

Requires 3.0:1 Β· You have 14.63:1

Quick presets

Based on WCAG 2.1 contrast guidelines. Large text = 18pt (24px) normal or 14pt (18.66px) bold. Hex codes update in both directions: type a hex or pick a color, both inputs stay in sync.

Buttons tips

πŸ”˜

White text on the brand primary color must pass 4.5:1 for AA. Test before committing to a brand color β€” some popular colors (like bright yellow) fail with white text.

πŸ’‘

Outline buttons need β‰₯3:1 contrast for the border AND for the text inside. Use the tool to test both.

🎯

For dual states (default + hover + active), test each state against the surrounding background separately.

Jinsi Inavyofanya Kazi

1
Ingiza
Enter your data into the tool above. Everything stays local to your browser.
2
Chakata
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Pakua
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Kwa nini utumie yetu?

βœ“Bure kabisa β€” bila gharama zilizofichwa, kamwe
βœ“Hakuna akaunti, barua pepe, au kuingia kinachohitajika
βœ“Faili hazitoki kwenye kifaa chako kamwe
βœ“Hakuna kikwazo cha ukubwa wa faili kabisa
βœ“Hakuna alama za maji kwenye matokeo yoyote

Also check out…

Maswali Yanayoulizwa Mara Kwa Mara