- Home
- Skills
- UX & UI Design
- wcag contrast fixer
More screenshots
Works with the AI Agents you already use
wcag contrast fixer
Audit every text/background and UI border pair in your CSS against WCAG 2.2 AA/AAA, resolve var() tokens, and get the nearest passing colour that keeps your hue.
$8.99
wcag contrast fixer
Example session with this skill installed
Check the contrast for these colors against WCAG 2.2 AA standards: #ffffff, #f3f4f6, #9ca3af, #3b82f6, #1d4ed8, #111827. Provide a report on failures.
- Read your context and instructions
- Compiled the wcag contrast fixer
- Generated the UI component
I have audited the provided hex palette against WCAG 2.2 AA standards. The analysis identified several high-risk color combinations, specifically involving the light gray and blue tokens against the white background.
WCAG 2.2 AA Contrast Audit
| Foreground | Background | Ratio | Status | Suggested Fix |
|---|---|---|---|---|
| #9ca3af | #ffffff | 2.26:1 | FAIL | Use #767676 (4.5:1) |
| #3b82f6 | #ffffff | 2.82:1 | FAIL | Use #2563eb (4.5:1) |
| #f3f4f6 | #111827 | 12.8:1 | PASS | - |
| #1d4ed8 | #ffffff | 6.88:1 | PASS | - |
| #111827 | #ffffff | 16.5:1 | PASS | - |
Findings Summary
Critical Failures: The secondary text color (#9ca3af) and primary blue (#3b82f6) fail the 4.5:1 ratio for standard text on a white background.
- Large Text: Both failing colors would pass for large text (3:1), but fail for body copy and UI components.
Hue Preservation: The suggested fixes maintain the original blue and gray hues while adjusting only the lightness to reach compliance.
Next steps
- Update
vars.csswith the suggested hex codes for compliant text. - Run the audit again with
--mdto save a permanent compliance artifact for the repository. - Verify if #9ca3af is intended only for decorative UI borders, which have lower requirements.
vars.css
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Don't just fail contrast - get the exact hex to fix it, still on brand.
The fixer parses your CSS, resolves custom properties, blends transparent colours, works out large-text thresholds from font-size and weight, and checks text (1.4.3/1.4.6) and UI borders (1.4.11). For every failure it suggests the nearest same-hue colour that passes - and a background alternative when that is the smaller change. --palette prints a full pass/fail matrix for a brand palette.
What it does
- CSS custom properties, hex/rgb/hsl/named colours and alpha blending
- Large-text detection (24px, or 18.66px bold)
- Nearest passing colour, same hue, foreground or background
- Palette matrix: AAA / AA / large-only / fail
Who it's for
Designers, front-end developers and agencies shipping accessible UIs.
Limits
Static CSS only; inheritance is approximated (page background). Not legal/financial advice.
What's included
SKILL.md: workflow, commands, how to explain findingsscripts/: the tool (stdlib Python)references/sources.md: specs and guidance citedexamples/: sample inputs used in the demotests/: unit tests (Python 3.8 / 3.9 / 3.13)
Standard-library Python only. No API keys, no network calls, no installs.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.
Offline / local files only - does not fetch live URLs or call APIs.
Static CSS only; inheritance is approximated (page background).
Gradients and images behind text are skipped.
Not legal advice.
Not legal/financial advice.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 16 days ago
Permissions
File Scopes
Fully offline. No subprocess, no network calls, no credential access.