Compute the WCAG 2.1 contrast ratio between two colours (accepts #rgb, #rrggbb, and rgb()/rgba() formats) and report whether it passes AA/AAA for normal and large text.
This page documents the HTTP endpoint POST /api/tools/color-contrast/execute. See the MCP reference →
Call it over REST
POST https://api.findutils.com/api/tools/color-contrast/execute · no API keys · 60 requests/min per IP
Execute — verified arguments
curl -X POST https://api.findutils.com/api/tools/color-contrast/execute \
-H "Content-Type: application/json" \
-d '{
"foreground": "#000",
"background": "#fff"
}' Parameter schema for this endpoint
curl https://api.findutils.com/api/tools/color-contrast Input schema
| Argument | Type | Required | Description |
|---|---|---|---|
| foreground | string | yes | Foreground / text colour. |
| background | string | yes | Background colour. |
Example arguments (verified)
{
"foreground": "#000",
"background": "#fff"
} Also an MCP tool
Claude, Cursor, and any MCP client can call this tool as
findutils:color_contrast after one connect command.
Connect once
claude mcp add findutils --transport http https://mcp.findutils.com/ More Developer tools
A2ui Basic Catalog
Returns the authoritative basic-catalog JSON Schema (components, functions, theme) for the requested A2UI version.
A2ui Diff
Computes a structural diff between two A2UI JSONL payloads: surfaces added/removed, components added/removed/changed (by id), data-model pat
A2ui Examples
Returns one or more canonical A2UI JSONL examples matching a pattern (form, list, wizard, modal, chat, dashboard, checkout, typeahead, mcp-c
A2ui Prompt
Generates a drop-in LLM system prompt that teaches the model to output valid A2UI JSONL: includes the basic-catalog component / function lis
A2ui Spec
Returns A2UI protocol documentation for a given spec version and section.
A2ui Validate
Validates a JSONL A2UI payload against the basic catalog (or a custom catalog) and returns any errors, warnings, or info messages with exact
Ai Model Picker
Return the best-matching AI coding models (top 3 by default) for a project, scored on speed, accuracy, cost and context window from four ans
Aspect Ratio
Compute the aspect ratio of width:height.