Claude Skills · Accessibility

Contrast fixer

Check colour pairs against WCAG contrast and suggest the nearest accessible alternatives. Use when text or UI colours may be too low contrast.

Install this skill

curl -fsSL https://uxmate.co.in/skill-files/install.sh | bash -s -- uxm-contrast-fixer
Download ZIP

Or unzip into ~/.claude/skills/. Then ask Claude Code to do the task, or call /uxm-contrast-fixer.

What is inside

---
name: uxm-contrast-fixer
description: Check colour pairs against WCAG contrast and suggest the nearest accessible alternatives. Use when text or UI colours may be too low contrast.
---

# Contrast fixer

1. Collect foreground/background pairs (hex values).
2. Compute contrast ratio per pair using the WCAG relative luminance formula; show the math for any borderline case.
3. Pass criteria: 4.5:1 normal text, 3:1 large text (18pt or 14pt bold) and UI components/graphics.
4. For failures, propose the **nearest** adjusted hex that passes while keeping hue, and show the new ratio.
5. Output a table: pair, ratio, AA normal, AA large, UI, suggested fix. Mention that colour must not be the only indicator.

More Accessibility skills

1

Player card

Intern

0 / 60 XP

0
day streak
0
lessons done
0
prompts used
0
total XP

Daily quests 0/3

Badges

Progress is saved in this browser. Sign in with Google to keep it on every device.

⏰ Last Chance to Join

Level Up Your Design Skills

Join 10,000+ designers getting weekly design tips, exclusive AI prompts, and video tutorials directly in your inbox.

Free tutorials & design tips
Exclusive AI prompts & workflows
No spam, unsubscribe anytime

Join 10,000+ Designers

Enter your email to get instant access to design tips, AI prompts & exclusive tutorials.

✓

You're All Set!

Check your email for instant access to our design tips, AI prompts, and exclusive tutorials. Welcome to the community! 🎉