color-contrast-mcp

v1.0.1
io.github.mrfentmen/color-contrast-mcp Checked 22 hours ago Published 24 days ago

WCAG 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.

ParameterTypeDescription
background *stringBackground colour
foreground *stringText colour, e.g. #333333

check_wcag

Check AA and AAA pass/fail for normal and large text.

ParameterTypeDescription
background *stringBackground colour
foreground *stringText colour

suggest_accessible

Adjust a colour until it meets a target contrast ratio against a background.

ParameterTypeDescription
background *stringBackground colour
foreground *stringStarting text colour
targetnumberTarget ratio (4.5 is AA normal text)