Skip to content
curiositech avatar

Color Contrast Auditor

Detailed WCAG 2.1 contrast auditing that calculates ratios, flags failing color pairs, and suggests compliant replacements.

CCM score
53 of 100
skills.sh installs
267
GitHub stars
278
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers WCAG 2.1 AA and AAA ratio requirements for normal text, large text, UI components, and graphical objects
  • Includes the relative luminance and contrast ratio formulas, plus a report template grouping failures by severity
  • Checks color-blindness risks such as red/green confusion, and warns against relying on color alone for meaning
  • Designed for pre-launch accessibility reviews and design-system color validation, with CSS and Tailwind color extraction

Install

$ npx -y skills add curiositech/some_claude_skills --skill color-contrast-auditor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Color Contrast Auditor

Detects color contrast violations that make text unreadable and provides WCAG-compliant fixes. Uses both mathematical contrast ratio analysis and perceptual evaluation via vision capabilities.

When to Use

Activate on:

  • Screenshots of websites/apps with suspected contrast issues
  • CSS/Tailwind files for color audit
  • "I can't read this" or "this is hard to see"
  • Pre-launch accessibility checks
  • Design system color validation

NOT for:

  • Choosing brand colors (use web-design-expert)
  • Color harmony/aesthetics (use color-theory-palette-harmony-expert)
  • Non-visual accessibility (screen readers, keyboard nav)

WCAG 2.1 Contrast Requirements

Minimum Ratios (AA - Required)

Text TypeMinimum RatioExample
Normal text (<24px, <18.66px bold)4.5:1Body copy, labels, buttons
Large text (≥24px or ≥18.66px bold)3:1Headlines, hero text
UI components (borders, icons)3:1Form inputs, icons, focus rings
Graphical objects3:1Charts, infographics

Enhanced Ratios (AAA - Recommended)

Details

Repository
github.com/curiositech/some_claude_skills
Categories
Design & UI/UX, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the color-contrast-auditor skill do?

color-contrast-auditor detects color contrast violations that make text unreadable and provides WCAG-compliant fixes. It uses both mathematical contrast ratio analysis and perceptual evaluation via vision capabilities, and it covers color blindness considerations.

How do I install color-contrast-auditor?

Run npx -y skills add curiositech/some_claude_skills --skill color-contrast-auditor -y in your project. Once installed, color-contrast-auditor lets the agent audit screenshots and CSS or Tailwind files for WCAG contrast problems.

When should I use color-contrast-auditor instead of another design skill?

Use color-contrast-auditor when you need a WCAG audit, a contrast ratio check, or a fix for text that is hard to read. color-contrast-auditor does not choose brand colors or harmony, so those tasks go to web-design-expert or color-theory-palette-harmony-expert.

What WCAG levels does color-contrast-auditor check against?

color-contrast-auditor checks the AA minimums of 4.5:1 for normal text and 3:1 for large text and UI components. It also lists AAA targets of 7:1 for normal text and 4.5:1 for large text.

More from curiositech/some_claude_skills

All 70

Similar to Color Contrast Auditor

More Design & UI/UX