andrewr303/claude-codex-plugin-lab/09-manage-color-contrast
Claude Code and agent skill by andrewr303/claude-codex-plugin-lab
- community
Checking that the SKILL.md file is still in the repository.
Ensure WCAG AA accessibility and readability
Install
npx vskill@latest install andrewr303/claude-codex-plugin-lab/09-manage-color-contrastSKILL.md
The same SKILL.md was published earlier as gnurio/refactoring-ui-plugin/09-manage-color-contrast.
Skill: Manage Color Contrast
Purpose
Ensure text and interactive elements have sufficient contrast against their backgrounds for readability and accessibility.
Type
Evaluative + Corrective
Input
- Text colors and sizes
- Background colors
- UI element specifications
Output
- Contrast ratio calculations
- Pass/Fail against WCAG standards
- Recommendations for fixes
Transformation Performed
Calculates contrast ratios and ensures compliance with WCAG AA standards (4.5:1 for normal text, 3:1 for large text and UI components).
Decision Criteria
PASS (Good Contrast)
- Normal text (< 18px): 4.5:1 minimum (WCAG AA)
- Large text (≥ 18px bold or ≥ 24px): 3:1 minimum
- UI components (buttons, inputs): 3:1 minimum for boundaries
- Focus indicators: 3:1 minimum against adjacent colors
FAIL (Poor Contrast)
- Light gray text on white (< 4.5:1)
- White text on light colors
- Disabled states that look like active (too much contrast)
- Placeholder text same as input text
Contrast Ratio Quick Reference
| Text Color on White | Ratio | Pass AA? | |
|---|---|---|---|
| #000000 (black) | 21:1 | ✓ | |
| #333333 | 12.6:1 | ✓ | |
| #666666 | 5.9:1 | ✓ | |
| #757575 | 4.6:1 | ✓ (minimum) | |
| #999999 | 2.8:1 | ✗ | |
| #CCCCCC | 1.6:1 | ✗ |
Common Failure Modes
| Failure | Description | Fix | |
|---|---|---|---|
| Light Gray Text | #999 or lighter for body text | Use #666 minimum, #333 preferred | |
| Ghost Text | Placeholder same as value | Make placeholder lighter (#999) | |
| Low-contrast Primary | Brand color too light for white text | Darken brand color or use dark text | |
| Subtle Links | Links barely different from text | Add underline or increase contrast | |
| Disabled Confusion | Disabled buttons too prominent | Reduce to 30% opacity or use gray | |
| Icon Fade | Icons too light to see | Match text color or use higher contrast |
Prerequisites
- Color palette defined
- Typography scale defined
Dependencies
build-color-palette(gray scale needed)
Refactoring UI References
- "Don't use grey text on colored backgrounds"
- "Ensure sufficient contrast"
Example Assessment
Input: Body text #888888 on white background
Evaluation: FAIL
- Ratio: ~3.5:1
- Below 4.5:1 requirement
Recommendation: Change to #666666 (5.9:1) minimum Prefer #333333 or #1A1A1A for body text
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ui-design-studio/skills/ReFactoring-ui-skill-collection/09-manage-color-contrast/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andrewr303/claude-codex-plugin-lab/09-manage-color-contrast)