Accessible Color Contrast MCP▌

by ryelle
Quick color contrast checker to validate WCAG color contrast with a contrast ratio checker — find accessible color combo
Enables checking WCAG color contrast ratios and accessibility compliance between color pairs. Helps determine optimal text colors for backgrounds and validates color combinations meet accessibility standards.
Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.
best for
- / Web developers ensuring accessible color schemes
- / UI/UX designers validating contrast compliance
- / Creating WCAG-compliant themes and interfaces
capabilities
- / Calculate WCAG contrast ratios between any two colors
- / Test color combinations for AA/AAA accessibility compliance
- / Recommend light or dark text colors for given backgrounds
- / Accept colors in hex, RGB, HSL, or named color formats
- / Validate text readability at different font sizes
what it does
Calculates WCAG color contrast ratios between color pairs and validates whether they meet accessibility standards for readable text.
about
Accessible Color Contrast MCP is a community-built MCP server published by ryelle that provides AI assistants with tools and capabilities via the Model Context Protocol. Quick color contrast checker to validate WCAG color contrast with a contrast ratio checker — find accessible color combo It is categorized under developer tools, design.
how to install
You can install Accessible Color Contrast MCP in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Accessible Color Contrast MCP is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Accessible Color Contrast MCP
A simple MCP (Model Context Protocol) server for checking accessible color pairings. This uses the WCAG (Web Content Accessibility Guidelines) contrast algorithm to calculate real contrast ratios, which can inform your AI when working with colors.
More about WCAG Contrast requirements
Setup
Add this to your AI platform:
{
"mcpServers": {
"accessibility": {
"command": "npx",
"args": ["-y", "a11y-color-contrast-mcp"]
}
}
}
Note, if you use nvm, you might need to use the path to the correct node and npx versions (24), for example:
"accessibility": {
"command": "/path-user-home/.nvm/versions/node/v24.12.0/bin/node",
"args": ["/path-user-home/.nvm/versions/node/v24.12.0/bin/npx", "-y", "a11y-color-contrast-mcp"]
}
Example Usage
- What is the contrast between #481bef and #c3eecb?
- If I have a background color #22d3ee, should I use light or dark text on it?
- What color text should I use for a background #6a4ba7 if I need to meet WCAG AAA level support?
- Can you suggest 3 color pairs that are accessible? The colors should not be black or white, and should be reminiscent of fall.
Available Tools
Get Color Contrast
Get the WCAG contrast value between two colors.
Parameters
colorA(required): First color (hex, rgb, hsl, or named color).colorB(required): Second color (hex, rgb, hsl, or named color).
Are Colors Accessible
Test two colors for WCAG accessible contrast.
Parameters
colorA: First color (hex, rgb, hsl, or named color).colorB: Second color (hex, rgb, hsl, or named color).level: WCAG level to test against, AA or AAA. Default "AA".size: Font size of text, larger font has a lower threshold. Can be small or large. Default "small".
Use Light or Dark
Detect whether to pair a light or dark color against a given color for best contrast.
Parameters
color: Color (hex, rgb, hsl, or named color).level: WCAG level to test against, AA or AAA. Default "AA".size: Font size of text, larger font has a lower threshold. Can be small or large. Default "small".
Development
This package contains a stdio and an http server, though the stdio is the recommended method for interacting with it.
Requirements
- Node 18+
Install the dependencies with npm install. The MCP server itself lives in src/server.ts, with the stdio server in index.ts and the http server in http.ts.
Scripts
npm run build: Builds the src files into build.npm run stdio: Builds the src files, then starts the stdio server.npm run http: Builds the src files, then starts the http server.npm run test: Run the Jest tests.
http server
This is a work in progress while I figure out if it's worth setting up as a remote server. For now, it's developer-only. Once running (see above), you can access this on port 3000.
Here's an example interaction you can test with a tool like Insomnia.
POST http://localhost:3000/mcp
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get-color-contrast",
"arguments": {
"colorA": "#ff0000",
"colorB": "#ffffff"
}
},
"id": 1
}
HTTP/1.1 200 OK
Content-Type: text/event-stream
event: message
data: {"result":{"content":[{"type":"text","text":"4.00"}]},"jsonrpc":"2.0","id":1}
FAQ
- What is the Accessible Color Contrast MCP MCP server?
- Accessible Color Contrast MCP is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Accessible Color Contrast MCP?
- This profile displays 30 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★30 reviews- ★★★★★Olivia Nasser· Dec 28, 2024
Accessible Color Contrast MCP has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Mia Perez· Dec 20, 2024
I recommend Accessible Color Contrast MCP for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Pratham Ware· Dec 4, 2024
Accessible Color Contrast MCP is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Olivia Ndlovu· Dec 4, 2024
Accessible Color Contrast MCP is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Yash Thakker· Nov 23, 2024
Useful MCP listing: Accessible Color Contrast MCP is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Noah Okafor· Nov 23, 2024
Useful MCP listing: Accessible Color Contrast MCP is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Lucas Lopez· Nov 11, 2024
We evaluated Accessible Color Contrast MCP against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Dhruvi Jain· Oct 14, 2024
Accessible Color Contrast MCP reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Noah Chen· Oct 14, 2024
Accessible Color Contrast MCP reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Mia Gill· Oct 2, 2024
Accessible Color Contrast MCP is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
showing 1-10 of 30