# Color Contrast — REST API endpoint `color-contrast`

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.

- Category: developer
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/color-contrast/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/color-contrast/
- Same tool on the other surface: https://findutils.com/mcp/color-contrast/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/color-contrast/execute \
  -H "Content-Type: application/json" \
  -d '{
    "foreground": "#000",
    "background": "#fff"
  }'

# Parameter schema
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):

```json
{
  "foreground": "#000",
  "background": "#fff"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:color_contrast`. Full MCP reference: https://findutils.com/mcp/color-contrast/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
