color-contrast-mcp
v1.0.1WCAG contrast ratios, AA/AAA checks and accessible colour suggestions for hex pairs - fully local.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
contrast_ratio
WCAG contrast ratio between two hex colours.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background colour |
foreground * | string | Text colour, e.g. #333333 |
check_wcag
Check AA and AAA pass/fail for normal and large text.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background colour |
foreground * | string | Text colour |
suggest_accessible
Adjust a colour until it meets a target contrast ratio against a background.
| Parameter | Type | Description |
|---|---|---|
background * | string | Background colour |
foreground * | string | Starting text colour |
target | number | Target ratio (4.5 is AA normal text) |