- Home
- Skills
- UX & UI Design
- Wcag Contrast Checker
Works with the AI Agents you already use
Wcag Contrast Checker
by Joblessking
WCAG contrast ratio, AA/AAA verdicts and a nearest-accessible-colour suggestion.
$1
What it does
- Calculates the exact WCAG contrast ratio between two colors
- Provides clear AA and AAA pass or fail results for different text sizes
- Suggests the nearest accessible color if your current choice fails
- Audits entire color palettes to find every failing combination
- Runs automated checks to ensure colors stay accessible during updates
Who it's for
Web designers picking site colors
Make sure your text is easy for everyone to read without guessing.
Try asking: “Check if light grey text works on a white background for my new blog.”
Frontend developers building accessible sites
Get exact math for color contrast and quick fixes for failing colors.
Try asking: “Audit these hex codes for WCAG AA compliance.”
Product managers reviewing brand colors
Ensure your brand meets legal accessibility standards before launch.
Try asking: “Is this blue button color accessible on a light grey background?”
Wcag Contrast Checker
Example session with this skill installed
I want to use #777777 for my body text on a white #ffffff background. Is this accessible for AA standards? If not, what is a color that works?
- Read your context and instructions
- Compiled the wcag contrast checker
I will check the contrast for your grey text against the white background.
Contrast Results
- Colors: #777777 on #ffffff
- Contrast Ratio: 4.48:1
- Verdict: FAIL for WCAG AA (requires 4.5:1)
Suggested Fix
To pass the AA standard for normal text, you should use a slightly darker grey. The nearest accessible color is:
- New Color: #767676
- New Ratio: 4.54:1
- New Verdict: PASS (AA)
Would you like me to check this color against the higher AAA standard as well?
Connects securely to your tools. The creator never sees your data.
About this skill
If your website text is hard to read, you lose users and might break accessibility laws. This skill helps you check the contrast between your text and background colors to ensure they meet official WCAG standards. It removes the guesswork by calculating the exact ratio and giving a clear pass or fail grade.
How it works
- You provide the hex codes for your foreground and background colors.
- The skill calculates the relative luminance and the exact contrast ratio.
- It checks the ratio against AA and AAA standards for normal text, large text, and UI elements.
- If a color fails, it suggests the closest possible color that will pass the test.
Frameworks & tools
This skill uses Python scripts to perform math calculations and run automated checks. It works with standard hex color codes.
Why this beats prompting it yourself
Standard AI agents often guess or hallucinate color contrast math, leading to false passes. This skill uses specific mathematical formulas for relative luminance to give you 100% accurate ratios every time. It also includes a logic for finding the nearest accessible color, which a standard chat cannot calculate precisely.
Use cases
- Auditing a full color palette for a new web project
- Fixing a grey text color that is just slightly too light to read
- Checking if icons and buttons meet non-text contrast requirements
- Running a quick test on design tokens during development
Known limitations
This skill only works with hex color codes and does not analyze colors inside images or gradients.
Built with Python 3.9 using the standard library. Includes a reference module with functions for relative luminance, contrast ratios, and color suggestions. Includes a test script with 21 regression checks. The logic moves foreground colors toward black or white to find the minimal delta for compliance.
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 today
Permissions
What's inside
Frequently Asked Questions
New in UX & UI Design
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.