Colour Contrast Checker
Check whether a text and background pair passes WCAG contrast rules.
About Colour Contrast Checker
Pick a text colour and a background and see the contrast ratio with a live preview of real text, plus a pass or fail against each WCAG level: AA and AAA for normal text, for large text, and the 3:1 that icons and borders need. Useful before you commit a palette to a design.
This tool runs in your browser, so your files never leave your device.
How to use Colour Contrast Checker
- Pick the text colour and the background.
- Read the ratio and the pass or fail for each level.
- Adjust until body text passes AA.
Questions
What ratio do I need?
Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text, meaning about 24px or 19px bold, needs 3:1 for AA. Icons and borders need 3:1.
What counts as large text?
Around 24px, or 19px when it is bold. Below that the normal-text rule applies.
Does passing AA mean the design is accessible?
It means the contrast is fine. Accessibility also covers focus states, keyboard use and not leaning on colour alone to carry meaning.
Related tools
- Lorem Ipsum Generator – Make placeholder text by paragraphs, sentences or words.
- Character Counter – Count characters with and without spaces, with a live limit for a tweet, bio or SMS.
- JSON Formatter & Validator – Pretty-print, minify and validate JSON. Shows the exact line and column of any error.
- Word & Character Counter – Count words, characters, sentences and paragraphs, with reading time and top keywords.
- Case Converter – Change text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.
- Password Generator – Create strong random passwords. Choose length and characters, and see how strong they are.
- Hash & UUID Generator – Generate UUIDs and MD5, SHA-1, SHA-256, SHA-384 or SHA-512 hashes of text and files.
- URL Encoder & Decoder – Encode or decode URLs and text, and take a URL apart into its host, path and query parameters.