MCP - WCAG 2.1 color contrast checker - contrast ratios, compliance and accessible color suggestions
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Contrast Checker MCP.
check_contrastCheck the contrast ratio between two colors and evaluate WCAG 2.1 compliance.
suggest_accessible_colorSuggest a replacement color that meets a WCAG contrast target, keeping the hue as close to the original as possible.
parse_colorParse a color string and return it in multiple formats.
An MCP server that provides color contrast checking tools for AI assistants. Verify WCAG 2.1 accessibility compliance, compute contrast ratios with alpha transparency support, and get accessible color suggestions β all via the standard Model Context Protocol.
Contrast calculations match WebAIM's contrast checker β including alpha compositing, WCAG 0.03928 sRGB threshold, and truncated (not rounded) ratios.
check_contrastCheck the contrast ratio between two colors and evaluate WCAG 2.1 compliance.
Inputs:
foreground β Foreground color (e.g. #333, rgb(0,0,0), rgba(0,0,0,0.5), navy)background β Background color (e.g. #fff, rgb(255,255,255), white)Output: Contrast ratio, WCAG 2.1 pass/fail results (AA normal, AA large, AAA normal, AAA large), parsed color values. When the foreground has alpha, shows the effective composited color used for the calculation.
suggest_accessible_colorSuggest a replacement color that meets a WCAG contrast target, keeping the hue as close to the original as possible.
Inputs:
foreground β Foreground colorbackground β Background colortarget_level β "AA" or "AAA" (default: "AA")fix β "foreground" or "background" (default: "foreground")Output: A suggested replacement color (in hex, rgb, hsl) that meets the target level, along with the new contrast ratio.
parse_colorParse a color string and return it in multiple formats.
Inputs:
color β Color to parse (e.g. #ff6600, rgb(255,102,0), tomato)Output: The color in hex, rgb, and hsl formats.
#rgb, #rrggbb, #rgba, #rrggbbaargb(r, g, b), rgba(r, g, b, a)hsl(h, s%, l%), hsla(h, s%, l%, a)red, cornflowerblue, rebeccapurple, etc.Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to .cursor/mcp.json or .vscode/mcp.json:
Black on white β 21:1 ratio, all WCAG levels pass:
Semi-transparent text β alpha composited onto background before checking:
Fix a failing color pair:
Apache-2.0
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/contrast-checker-mcp)<a href="https://allmcps.com/mcp/contrast-checker-mcp"><img src="https://allmcps.com/api/badge/contrast-checker-mcp?style=directory" alt="Contrast Checker MCP on AllMCPs" /></a>