manage-color-contrast

Verifies foreground and background colors meet WCAG AA contrast thresholds.

240|11|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill manage-color-contrast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-color-contrast
Source: https://github.com/gnurio/refactoring-ui-plugin/tree/main/skills/09-manage-color-contrast
Command: npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill manage-color-contrast

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Low color contrast makes text and interactive controls hard to read and can fail accessibility requirements, harming usability and compliance.

Core Features & Use Cases

  • WCAG AA Contrast Checking: Calculates contrast ratios for normal text, large text, UI component boundaries, and focus indicators.
  • Actionable Pass/Fail Guidance: Identifies which elements fail and why (for example, light gray body text on white or insufficient link contrast).
  • Targeted Remediation Suggestions: Recommends concrete fixes like darkening colors, adjusting placeholder/disabled styling, and improving link visibility.

Quick Start

Ask the AI to evaluate your UI colors against WCAG AA by providing your text colors, font sizes, background colors, and interactive element specs.

Frequently Asked Questions about manage-color-contrast

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my UI color contrast meets WCAG AA requirements?

To check WCAG AA color contrast, calculate the contrast ratio between foreground and background colors. Normal text requires a minimum ratio of 4.5:1, while large text and UI component boundaries need at least 3:1 to ensure accessible readability.

What is the minimum contrast ratio for focus indicators and UI components?

The minimum contrast ratio for focus indicators and UI component boundaries is 3:1. Verifying this ratio ensures that interactive elements like buttons and inputs remain visually distinct and comply with WCAG AA accessibility standards.

How do I fix low-contrast text and disabled states in my interface?

Fix low-contrast text and disabled states by darkening foreground colors or adjusting placeholder styling. Remediating these elements ensures body text, links, and disabled inputs meet the 4.5:1 contrast threshold for readable UI typography.

Does WCAG AA contrast checking apply to large text and placeholder text?

Yes, WCAG AA contrast checking applies to large text, placeholders, and disabled states. Large text requires a 3:1 contrast ratio, while normal body text and placeholders must meet a 4.5:1 ratio against their background for accessible readability.

Why does my light gray body text fail accessibility contrast checks?

Light gray body text fails accessibility contrast checks because its contrast ratio against a white background falls below the 4.5:1 WCAG AA minimum. Darkening the text color provides actionable remediation to pass the contrast threshold.