Colour contrast checker
Pale grey text on white looks elegant and is hard to read for anyone with tired eyes or a phone in the sun. Check a colour pair against the accessibility standard before it ships.
How it works
- Type the text colour and the background colour.
- Press Check.
- Read the ratio and which WCAG levels it passes.
What contrast ratio does WCAG require?
Level AA needs 4.5:1 for normal text and 3:1 for large text. Level AAA needs 7:1 and 4.5:1.
What counts as large text?
24 pixels and up, or 19 pixels and up when bold (18 and 14 points).
Does this apply to buttons and icons?
Yes. Interface components and meaningful graphics need at least 3:1 against what is next to them.
Use it from ChatGPT, Claude or your own agent
This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.
Fields
foreground(text, required): Text colourbackground(text, required): Background colour
A call that works
POST https://orkosi.com/api/v1/public/tools/contrast-checker/run
Authorization: Bearer <api_key>
{
"input": {
"foreground": "#6B7280",
"background": "#FFFFFF"
}
}Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.