Color Contrast Auditor
This tool analyzes website content to ensure sufficient color contrast for accessibility, improving readability and user experience.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add color-contrast-auditor npx -- -y @trustedskills/color-contrast-auditor
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"color-contrast-auditor": {
"command": "npx",
"args": [
"-y",
"@trustedskills/color-contrast-auditor"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The color-contrast-auditor skill analyzes web pages to identify text and background color combinations that fail accessibility standards. It specifically checks if foreground and background colors meet the required contrast ratios for readability, helping developers ensure their interfaces are inclusive for users with visual impairments.
When to use it
- Audit existing landing pages before public release to catch low-contrast text errors early.
- Validate form labels, button text, and error messages against WCAG guidelines.
- Test dark mode implementations where color inversion often leads to insufficient contrast.
- Integrate into the development workflow to automatically flag accessibility issues during UI updates.
Key capabilities
- Scans web pages for text elements with poor visibility against their backgrounds.
- Calculates specific contrast ratios between foreground and background colors.
- Highlights non-compliant areas that violate standard accessibility thresholds.
Example prompts
- "Run a color-contrast audit on my current homepage and list any text elements failing WCAG AA standards."
- "Identify all buttons with low contrast ratios so I can adjust their styling for better accessibility."
- "Check the error messages on my login form to ensure they are readable against the background."
Tips & gotchas
Ensure your AI agent has access to the live URL or a snapshot of the page being audited, as it cannot analyze local files directly. While this tool highlights contrast issues, it does not replace a full manual accessibility review which includes other factors like semantic HTML and focus states.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.