# Wcag Contrast Checker

> WCAG contrast ratio, AA/AAA verdicts and a nearest-accessible-colour suggestion.

Wcag Contrast Checker is a paid AI agent skill on Agensi by Joblessking, in UX & UI Design. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Joblessking](https://www.agensi.io/creators/joblessking)
- Category: [UX & UI Design](https://www.agensi.io/skills/ux-ui-design)
- Version: 1.0.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/wcag-contrast-checker
- Tags: design, python, accessibility, wcag

## 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: "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: "Audit these hex codes for WCAG AA compliance."
- **Product managers reviewing brand colors:** Ensure your brand meets legal accessibility standards before launch. Try: "Is this blue button color accessible on a light grey background?"

## 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
1. You provide the hex codes for your foreground and background colors.
2. The skill calculates the relative luminance and the exact contrast ratio.
3. It checks the ratio against AA and AAA standards for normal text, large text, and UI elements.
4. 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.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Wcag Contrast Checker skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does this skill do if my text colors are hard to read?

This skill calculates the exact contrast ratio between two hex colors and provides a clear pass or fail grade based on official WCAG standards. If your color combination fails, it suggests the closest possible shade that meets accessibility requirements.

### What do I need to give the agent to start a check?

You only need to provide the hex codes for your foreground and background colors. Your AI agent uses the included Python scripts to run the math and generate a report on whether they meet AA or AAA standards.

### Can I use this to check colors inside a photo or a background gradient?

The skill works with standard hex color codes. It cannot analyze colors found within images or gradients.

### Why should I use this instead of just asking a normal AI to check my colors?

Standard AI agents often guess at the math, which can lead to incorrect results. This skill uses specific mathematical formulas for relative luminance to ensure the contrast ratios are 100 percent accurate every time.

### How should I ask my agent to use this skill?

You can ask your agent to audit a full color palette, fix a specific grey text color that is too light, or check if your icons and buttons meet non-text contrast rules. Simply provide your hex codes and ask for a WCAG compliance report.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
