Color Contrast Checker

🌐Community
by jeremylongshore · vlatest · Repository

This tool analyzes webpage colors to ensure sufficient contrast for accessibility and readability, improving user experience.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add color-contrast-checker npx -- -y @trustedskills/color-contrast-checker
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "color-contrast-checker": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/color-contrast-checker"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill checks the color contrast ratio between two given colors. It determines if the contrast meets accessibility guidelines, specifically Web Content Accessibility Guidelines (WCAG). The tool provides a numerical contrast ratio and indicates whether the combination passes WCAG AA or AAA standards for different text sizes.

When to use it

  • Website Design: Ensure sufficient color contrast for readability on websites and applications.
  • UI/UX Testing: Validate that user interface elements have adequate contrast for users with visual impairments.
  • Document Creation: Check the contrast of text and background colors in documents, presentations, or reports.
  • Marketing Materials: Verify accessibility compliance when designing marketing collateral like brochures or advertisements.

Key capabilities

  • Calculates color contrast ratio.
  • Determines WCAG AA compliance.
  • Determines WCAG AAA compliance.
  • Supports various text sizes for contrast evaluation.

Example prompts

  • "What is the contrast ratio between #FFFFFF and #000000?"
  • "Is the color combination of light gray (#D3D3D3) and dark blue (#00008B) WCAG AA compliant for 12pt text?"
  • "Check if a background of #F0F0F0 is accessible with white text (#FFFFFF)."

Tips & gotchas

The skill requires valid hexadecimal color codes (e.g., #RRGGBB) as input. Incorrectly formatted color codes will result in errors or inaccurate results.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
jeremylongshore
Installs
21

🌐 Community

Passed automated security scans.