Works with the AI Agents you already use

    Wcag Contrast Checker

    by Joblessking

    1

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

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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

    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

    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.

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    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.

    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.

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

    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.

    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.

    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.