Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Freebies — Color Contrast Checker

    1

    Calculate WCAG 2.1 contrast ratios and generate compliant hex color adjustments for UI accessibility.

    Free

    Security scanned
    Freebies — Color Contrast Checker

    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

    AttributeValueResult
    Foreground Color#767676-
    Background Color#FFFFFF-
    Contrast Ratio4.47:1Fail
    AA Normal (4.5:1)4.47:1Fail
    AA Large (3.0:1)4.47:1Pass
    AAA Normal (7.0:1)4.47:1Fail

    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

    1. Update the CSS variable or utility class for the text color to #757575.
    2. Verify the adjustment across different display profiles to ensure visual intent is maintained.
    3. 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 1. Input a foreground and background color in any standard format. 2. The skill parses the color space and calculates the relative luminance. 3. A contrast ratio is generated and compared against three WCAG compliance tiers. 4. 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.

    Supports solid colors only. No support for gradients, transparency/alpha channels, or background images. Pure mathematical analysis without visual rendering.

    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 any payment.

    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 forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Requires

    File System Read/Write (strictly scoped to current project workspace `./`).
    Zero global installation or elevated privileges required.

    Permissions

    Read Files
    Network Access

    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.

    Listed3 days ago

    What's inside

    Frequently Asked Questions

    This skill uses deterministic WCAG 2.1 formulas to calculate exact luminance rather than relying on LLM 'guessing.' It ensures that every suggested hex code is mathematically verified to meet specific AA or AAA contrast thresholds.

    The skill accepts all standard web formats, including Hex codes, RGB, and HSL. Regardless of your input format, it will provide the precise contrast ratio and suggested hex adjustments.

    This skill is designed to integrate with any AI agent or platform that supports external skill sets or tool-calling. Once added to your agent's library, it can be invoked during UI audits or design workflows.

    You receive the full logic for the contrast checker, including the WCAG 2.1 evaluation engine and the automated color adjustment algorithm. It is ready for immediate deployment in your accessibility workflows.

    No, this skill operates using internal mathematical models and does not require any external API keys or subscriptions. All calculations are performed locally within your AI agent's environment.

    Currently, the skill is optimized for solid color pairings. It cannot accurately calculate contrast for text placed over gradients, images, or semi-transparent layers.

    New in Frontend & Web Apps