Agent skill

Color Accessibility

by jmagly in jmagly/aiwg

WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions.

MITAuto-check passedFrontend & Design

Install Color Accessibility

skills CLI
$ npx skills add jmagly/aiwg --skill color-accessibility -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jmagly/aiwg color-accessibility --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jmagly/aiwg.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agentic/code/plugins/color-palette/skills/color-accessibility .claude/skills/color-accessibility && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
color-accessibility
GitHub stars
220
Token cost
~1.6k tokens
SKILL.md length
460 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions.

  • Works in 7 steps: Parse Colors → Calculate Relative Luminance → Calculate Contrast Ratios → …
  • User needs to verify colors meet accessibility standards
  • SKILL.md covers Purpose, When This Skill Applies, Trigger Phrases and Parameters, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Color Accessibility is an agent skill from jmagly/aiwg. WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions. Use when user needs to verify colors meet accessibility standards.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Accessibility. The repository describes itself as: Cognitive architecture for AI-augmented software development. Specialized agents, structured workflows, and multi-platform deployment. Claude Code · Codex · Copilot · Cursor ·… The licence is MIT.

When your agent uses it

  • User needs to verify colors meet accessibility standards
  • Tasks that involve Accessibility

Example prompts

  • “/color-accessibility”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Parse Colors
  2. Calculate Relative Luminance
  3. Calculate Contrast Ratios
  4. Evaluate Against Standards
  5. Generate Contrast Matrix
  6. Color Vision Deficiency Check
  7. Remediation Suggestions

What it can do on your machine

Read from SKILL.md and the folder at commit dda238f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Color Accessibility loads about 1.6k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 460 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jmagly/aiwg at commit dda238f, republished under its MIT licence (© jmagly). 460 words, ~1,550 tokens.

Download SKILL.mdSave it as .claude/skills/color-accessibility/SKILL.md (or your agent's skills folder).
name
color-accessibility
description
WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions. Use when user needs to verify colors meet accessibility standards.
namespace
aiwg
platforms
all
version
1.0.0

Color Accessibility Skill

Purpose

Analyze color palettes for WCAG 2.1 accessibility compliance. Calculate contrast ratios for all color pairs, identify failing combinations, and suggest fixes to meet AA or AAA standards.

When This Skill Applies

  • User asks "are these colors accessible?"
  • User wants to "check contrast ratios"
  • User needs "WCAG compliance" for a palette
  • User asks about "color accessibility"
  • User wants to ensure colors work for colorblind users
  • User mentions "AA" or "AAA" standards

Trigger Phrases

Natural LanguageAction
"Check if these colors are accessible"Full WCAG analysis
"What's the contrast ratio?"Calculate specific pair ratio
"Make this palette AA compliant"Analyze + suggest fixes
"Is this readable?"Text contrast check
"Color blind friendly?"Color vision deficiency check
"Fix the accessibility of this palette"Remediation suggestions

Parameters

  • --palette <colors> — Comma-separated color values to analyze
  • --foreground <color> — Specific foreground color (for pair check)
  • --background <color> — Specific background color (for pair check)
  • --standard <level> — Target standard: A, AA (default), AAA
  • --fix — Include remediation suggestions for failing pairs
  • --matrix — Show full contrast matrix for all pairs

Analysis Process

1. Parse Colors

Accept colors in any format and normalize to HEX + RGB + HSL:

  • HEX: #1a1a2e, #fff
  • RGB: rgb(26, 26, 46)
  • HSL: hsl(240, 28%, 14%)
  • Named: navy, coral, forestgreen
2. Calculate Relative Luminance

For each color, calculate relative luminance per WCAG 2.1:

For each channel (R, G, B):
  sRGB = channel / 255
  linear = sRGB <= 0.04045
           ? sRGB / 12.92
           : ((sRGB + 0.055) / 1.055) ^ 2.4

L = 0.2126 * R_linear + 0.7152 * G_linear + 0.0722 * B_linear
3. Calculate Contrast Ratios

For every foreground/background pair:

ratio = (max(L1, L2) + 0.05) / (min(L1, L2) + 0.05)
4. Evaluate Against Standards
StandardNormal Text (< 18pt)Large Text (>= 18pt or 14pt bold)UI Components
ANo minimumNo minimumNo minimum
AA4.5:13:13:1
AAA7:14.5:14.5:1
5. Generate Contrast Matrix

For N colors, generate an N x N matrix:

Contrast Matrix (AA Standard)

           #1a1a2e  #16213e  #0f3460  #e94560  #ffffff
#1a1a2e      —      1.2:1   1.8:1    5.4:1    14.2:1
                     FAIL    FAIL     PASS     PASS
#16213e    1.2:1      —      1.5:1    4.5:1    11.8:1
           FAIL               FAIL    PASS     PASS
#0f3460    1.8:1    1.5:1      —      3.0:1     7.9:1
           FAIL     FAIL              FAIL     PASS
#e94560    5.4:1    4.5:1    3.0:1      —       2.6:1
           PASS     PASS     FAIL              FAIL
#ffffff   14.2:1   11.8:1    7.9:1    2.6:1      —
           PASS     PASS     PASS     FAIL
Show full SKILL.md (192 more words)Show less
6. Color Vision Deficiency Check

Simulate how the palette appears under common color vision deficiencies:

TypePrevalenceAffected Colors
Protanopia (no red)~1% malesRed-green confusion
Deuteranopia (no green)~1% malesRed-green confusion
Tritanopia (no blue)~0.003%Blue-yellow confusion
Achromatopsia (no color)~0.003%All hues lost

Check that colors remain distinguishable under each simulation. Flag pairs that become indistinguishable.

7. Remediation Suggestions

When --fix is specified, for each failing pair suggest adjustments:

  • Darken the darker color or lighten the lighter color
  • Adjust saturation to increase perceived contrast
  • Suggest the minimum lightness shift needed to pass
  • Provide the adjusted color value
Failing pair: #0f3460 on #e94560 (3.0:1, needs 4.5:1)

Suggestions:
  Option A: Darken background → #0a2340 (ratio: 4.6:1) PASS
  Option B: Lighten foreground → #ff6b7f (ratio: 4.5:1) PASS
  Option C: Use white text instead → #ffffff on #e94560 (2.6:1) FAIL
            Use white on darkened → #ffffff on #c93050 (4.8:1) PASS

Output Format

Summary View (default)
Accessibility Report — AA Standard

Palette: #1a1a2e, #16213e, #0f3460, #e94560, #ffffff

Overall: 6/10 pairs pass AA (60%)

PASSING (6):
  #1a1a2e on #e94560  — 5.4:1  (AA normal text)
  #1a1a2e on #ffffff  — 14.2:1 (AAA normal + large)
  #16213e on #e94560  — 4.5:1  (AA normal text, borderline)
  #16213e on #ffffff  — 11.8:1 (AAA normal + large)
  #0f3460 on #ffffff  — 7.9:1  (AAA normal + large)
  #e94560 on #1a1a2e  — 5.4:1  (AA normal text)

FAILING (4):
  #1a1a2e on #16213e  — 1.2:1  (needs 4.5:1)
  #1a1a2e on #0f3460  — 1.8:1  (needs 4.5:1)
  #16213e on #0f3460  — 1.5:1  (needs 4.5:1)
  #e94560 on #ffffff  — 2.6:1  (needs 4.5:1)

Recommendations:
  - Avoid using dark colors on each other for text
  - #e94560 needs a darker variant for use on white backgrounds
  - Consider adding a dark text color (#1a1a2e) for light backgrounds
Pair Check View
Contrast Check

Foreground: #e94560 (Coral Red)
Background: #1a1a2e (Dark Navy)

Contrast Ratio: 5.4:1

AA Normal Text (4.5:1):  PASS
AA Large Text  (3.0:1):  PASS
AAA Normal Text (7.0:1): FAIL (need 7.0:1)
AAA Large Text (4.5:1):  PASS

Best Practices

  1. Test text on backgrounds, not just swatches — A palette can look cohesive but fail for readability
  2. Check both directions — Light text on dark AND dark text on light
  3. Include white and near-black — Most palettes need a light and dark neutral for text
  4. Don't rely on color alone — Use icons, patterns, or labels alongside color for meaning
  5. Test at actual sizes — Large text thresholds are different from normal text
  6. Consider dark mode — Recalculate for dark mode backgrounds

© jmagly, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agentic/code/plugins/color-palette/skills/color-accessibility of jmagly/aiwg.

Open the folder on GitHubat commit dda238f

Compare with similar skills

Color Accessibility next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Color Accessibility compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Color Accessibility this skilljmagly/aiwg220—~1.6kAutomated safety check: PassMIT
Web Interface Guidelines Reviewervercel-labs/openreview1.7k98 repos~308Automated safety check: PassNone
Accessibility Reviewmarkmead/hyperui12k1 repos~1.1kAutomated safety check: PassMIT
Web Animation DesignbaptisteArno/typebot.io11k2 repos~2.7kAutomated safety check: PassCustom licence
Accessibility Fixeribelick/ui-skills9.5k4 repos~1.2kAutomated safety check: PassMIT
Wcag Audit PatternsvmDeshpande/ai-agent-automation17811 repos~610Automated safety check: PassApache-2.0

Similar skills

  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 98 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Accessibility Review

    markmead/hyperui

    Run a WCAG 2.1 AA accessibility audit on a design or page. An agent skill from markmead/hyperui.

    12k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Web Animation Design

    baptisteArno/typebot.io

    Guides easing, timing and animation choices for UI motion, based on a web animation course, and reviews existing animations in a before-and-after table.

    11k GitHub starsUsed in 2 repos~2.7k tokens
    Frontend & DesignAuto-check passed
  • Accessibility Fixer

    ibelick/ui-skills

    Audits and fixes HTML accessibility problems such as ARIA labels, keyboard navigation, focus management, contrast and form errors with minimal changes.

    9.5k GitHub starsUsed in 4 repos~1.2k tokens
    Frontend & DesignAuto-check passed
  • Wcag Audit Patterns

    vmDeshpande/ai-agent-automation

    Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance.

    178 GitHub starsUsed in 11 repos~610 tokens
    Frontend & DesignAuto-check passed
  • Baseline UI

    ibelick/ui-skills

    Applies a fixed set of UI rules for stack, components, interaction, animation, typography and layout, or reviews a file against them with concrete fixes.

    9.5k GitHub starsUsed in 8 repos~855 tokens
    Frontend & DesignAuto-check passed

More from jmagly/aiwg

All 12 skills in this repo
  • Review editorial phrase patterns and suggest contextual alternatives; legacy name does not imply authorship detection.

    220 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Voice Apply

    jmagly/aiwg

    Apply a voice profile to transform content. An agent skill from jmagly/aiwg.

    220 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Mutation Test

    jmagly/aiwg

    Run mutation testing to validate test quality beyond code coverage.

    220 GitHub stars~3.2k tokensUpdated 3 days ago
    Auto-check passed
  • TDD Enforce

    jmagly/aiwg

    Configure TDD enforcement via pre-commit hooks and CI coverage gates.

    220 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • LLMs Txt Support

    jmagly/aiwg

    Detect and use llms.txt files for LLM-optimized documentation.

    220 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Detect project type, AIWG framework state, team configuration, and active work to summarize status and recommend next actions

    220 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed

Questions about Color Accessibility

What does Color Accessibility do?

WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions. Color Accessibility is an agent skill from jmagly/aiwg. WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions.

When should I use Color Accessibility?

Color Accessibility fits situations like: user needs to verify colors meet accessibility standards; tasks that involve Accessibility.

How do I install Color Accessibility in Claude Code?

Run `npx skills add jmagly/aiwg --skill color-accessibility -a claude-code`. Or copy the skill folder (agentic/code/plugins/color-palette/skills/color-accessibility in jmagly/aiwg) into .claude/skills/color-accessibility in your project. Claude Code loads it when a task matches its description.

How do I install Color Accessibility in Codex?

Run `npx skills add jmagly/aiwg --skill color-accessibility -a codex`. Or copy the skill folder (agentic/code/plugins/color-palette/skills/color-accessibility in jmagly/aiwg) into .agents/skills/color-accessibility in your project. Codex loads it when a task matches its description.

Can I use Color Accessibility in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jmagly/aiwg --skill color-accessibility -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/color-accessibility, .gemini/skills/color-accessibility, .github/skills/color-accessibility and .opencode/skills/color-accessibility in your project.

What does Color Accessibility need to run?

SKILL.md names no scripts, command-line tools or credentials: Color Accessibility is instructions for the agent only.

Does Color Accessibility access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Color Accessibility safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Color Accessibility use?

Color Accessibility is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Color Accessibility use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Color Accessibility?

Skills that share tags, products or a category with Color Accessibility: Web Interface Guidelines Reviewer (vercel-labs/openreview, 1.7k stars), Accessibility Review (markmead/hyperui, 12k stars), Web Animation Design (baptisteArno/typebot.io, 11k stars) and Accessibility Fixer (ibelick/ui-skills, 9.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Color Accessibility?

jmagly (a GitHub user) maintains it in jmagly/aiwg, which has 220 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 5, 2026.

Source: jmagly/aiwg on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.