Home / MCP Tools / WCAG Color Contrast Checker
Live MCP tooldeveloper

WCAG Color Contrast Checker

Contrast ratio between two hex colors plus WCAG 2.x AA/AAA pass/fail for normal and large text.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
foregroundstringrequiredForeground hex color, e.g. '#111111' or '111'
backgroundstringrequiredBackground hex color, e.g. '#FFFFFF' or 'fff'

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "color_contrast", "arguments": {"foreground": "example", "background": "example"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/color_contrast \
  -H 'Content-Type: application/json' \
  -d '{"foreground": "example", "background": "example"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/color_contrast from your browser.

Related tools in Developer