- Home
- Skills
- Frontend & Web Apps
- Freebies — Color Contrast Checker
Works with the AI Agents you already use
Freebies — Color Contrast Checker
Calculate WCAG 2.1 contrast ratios and generate compliant hex color adjustments for UI accessibility.
Free
Freebies — Color Contrast Checker
Example session with this skill installed
Check the contrast for foreground #767676 on background #FFFFFF and suggest a fix if it fails AA.
- Read your context and instructions
- Compiled the freebies
I have calculated the contrast ratio and evaluated it against WCAG 2.1 standards. The current combination fails the AA requirement for normal text.
Color Accessibility Audit
| Attribute | Value | Result |
|---|---|---|
| Foreground Color | #767676 | - |
| Background Color | #FFFFFF | - |
| Contrast Ratio | 4.47:1 | Fail |
| AA Normal (4.5:1) | 4.47:1 | Fail |
| AA Large (3.0:1) | 4.47:1 | Pass |
| AAA Normal (7.0:1) | 4.47:1 | Fail |
Suggested Adjustment
To pass the WCAG AA Normal requirement (minimum 4.5:1), use the following adjusted foreground color:
- New Foreground:
#757575 - New Contrast Ratio: 4.6:1
- Status: PASS (AA Normal)
Next steps
- Update the CSS variable or utility class for the text color to
#757575. - Verify the adjustment across different display profiles to ensure visual intent is maintained.
- Run an automated accessibility scan on the affected component to confirm the fix.
Connects securely to your tools. The creator never sees your data.
About this skill
Hard-coded color values often fail accessibility audits late in the development cycle. This skill calculates precise contrast ratios and provides immediate fixes for non-compliant foreground and background pairings.
What it does
- Luminance calculation determines the relative luminance of any hex, RGB, or HSL color input.
- WCAG evaluation tests color pairs against AA Normal, AA Large, and AAA Normal standards.
- Automated adjustment generates the nearest compliant hex code when a color pair fails.
- Formulaic precision uses the standard WCAG 2.1 contrast formula for mathematical accuracy.
How it works
- Input a foreground and background color in any standard format.
- The skill parses the color space and calculates the relative luminance.
- A contrast ratio is generated and compared against three WCAG compliance tiers.
- If the ratio is below 4.5:1 or 7.0:1, the skill suggests a modified hex value to reach passing status.
Frameworks & tools
This skill is framework-agnostic and works with any CSS, Tailwind, or design system implementation. It uses internal mathematical models based on WCAG 2.1 specifications without external API dependencies.
Why this beats prompting it yourself
Standard LLMs often hallucinate color math or guess "accessible" colors that actually fail when measured. This skill uses a deterministic workflow and specific formulas to ensure every hex suggestion is mathematically verified to pass.
Use cases
- Auditing existing UI components for WCAG 2.1 AA/AAA compliance.
- Adjusting brand colors for better readability on web platforms.
- Generating accessible text colors for dynamic background overlays.
- Debugging low-contrast issues reported in Lighthouse or Axe audits.
Known limitations
Calculations are limited to solid color pairings. It does not support gradients, semi-transparent overlays, or text over background images.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Supports solid colors only. No support for gradients, transparency/alpha channels, or background images. Pure mathematical analysis without visual rendering.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 3 days ago
- Free with an Agensi account
- Software
- Zero global installationorelevated privileges required.
File System Read/Write (strictly scoped to current project workspace `./`).
Permissions
Target Use Cases: - Check color contrast ratio between these two hex colors. - Verify if my button text color passes WCAG AA contrast. - Suggest an accessible dark color for white background.