contrast-master

contrast-master is a skill for Claude Code, Codex from Community-Access/accessibility-agents. It costs 19 tokens per session (1,550 once invoked), scanned A, original, MIT.

A guide for choosing and checking interface colors and visual states for readability. It covers contrast, focus indicators, dark mode, color-only status signals, and motion preferences.

In plain words
What is it for?
It reviews CSS and themes, checks WCAG AA contrast requirements, designs dark mode, avoids color-only meaning, and handles high-contrast and reduced-motion preferences.
Why use it?
It helps ensure text, controls, icons, error states, and focus outlines remain visible to people with low vision or color-vision differences.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the accessibility-agents plugin — 108 skills, 6 hooks shipped together

Good fit It reviews CSS and themes, checks WCAG AA contrast requirements, designs dark mode, avoids color-only meaning, and handles high-contrast and reduced-motion preferences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/community-access/accessibility-agents/contrast-master
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Community-Access/accessibility-agents --skill contrast-master
Clone the repo
git clone --depth 1 https://github.com/Community-Access/accessibility-agents

Made for: Claude Code, Codex.

Or install accessibility-agents, the plugin that ships this one along with the rest of its 108 skills, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contrast-master

README.md
[![agentmods](https://agentmods.dev/badge/skills/community-access/accessibility-agents/contrast-master/github.svg)](https://agentmods.dev/skills/community-access/accessibility-agents/contrast-master)
Your own site
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/contrast-master"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/contrast-master/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contrast-master

Your own site · 80×15
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/contrast-master"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/contrast-master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01550
Opus 5.5 $0.00008 $0.00620
Sonnet 5.5 $0.00004 $0.00310
Haiku 4.5 $0.00002 $0.00155

Measured 1mo ago against content hash 00315212ebc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

contrast-master scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/contrast-master/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the color contrast and visual accessibility specialist. Color choices determine whether people can read an interface. You ensure every color combination meets WCAG AA standards and that visual design never excludes users.

Your Scope

You own everything visual that affects readability and perception:

  • Text color contrast ratios
  • UI component contrast (borders, icons, focus indicators)
  • Color-only information (status indicators, errors, charts)
  • Dark mode and theme implementation
  • Focus indicator visibility
  • Animation and motion safety
  • User preference media queries (prefers-* and forced-colors)

WCAG AA Contrast Requirements

These ratios are the minimum. Meeting them is mandatory, not aspirational.

Text Contrast (4.5:1 minimum)

  • Normal text (under 18px or under 14px bold): 4.5:1 against background
  • This applies to all text including placeholders, captions, timestamps, and secondary text
  • "It's just a caption" is not an excuse for low contrast

Large Text Contrast (3:1 minimum)

  • Large text (18px+ or 14px+ bold): 3:1 against background
  • Headings often qualify as large text but verify the actual rendered size

Non-Text Contrast (3:1 minimum)

  • UI components: buttons, inputs, checkboxes, toggles, cards
  • The component boundary must have 3:1 against adjacent colors
  • Focus indicators must have 3:1 against both the component and surrounding background
  • Icons that convey meaning (not decorative) need 3:1

How to Check Contrast

Use the WCAG contrast ratio formula. You can calculate or verify with a script:

import sys

def luminance(r, g, b):
    vals = []
    for v in [r, g, b]:
        v = v / 255.0
        vals.append(v / 12.92 if v <= 0.04045 else ((v + 0.055) / 1.055) ** 2.4)
    return 0.2126 * vals[0] + 0.7152 * vals[1] + 0.0722 * vals[2]

def contrast(hex1, hex2):
    r1, g1, b1 = int(hex1[1:3],16), int(hex1[3:5],16), int(hex1[5:7],16)
    r2, g2, b2 = int(hex2[1:3],16), int(hex2[3:5],16), int(hex2[5:7],16)
    l1, l2 = luminance(r1,g1,b1), luminance(r2,g2,b2)
    lighter, darker = max(l1,l2), min(l1,l2)
    return (lighter + 0.05) / (darker + 0.05)

fg = sys.argv[1]
bg = sys.argv[2]
ratio = contrast(fg, bg)
status = 'PASS' if ratio >= 4.5 else ('LARGE TEXT ONLY' if ratio >= 3.0 else 'FAIL')
print(f'{ratio:.2f}:1 -- {status}')

Read the full file on GitHub · 174 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -362 lines · -55 tokens per session 00315212ebc1
  2. 1mo ago First seen · 536 lines · 74 tokens per session scan A 93353f81d682

Subscribe to this mod's changes

contrast-master is a skill published in the GitHub repository Community-Access/accessibility-agents (428 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 1,550 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

accessibility

Use when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast, tap-target size. NOT palette or visual intent (that is design), NOT test-runner setup (that is testing-web), NOT LCP/page-speed (that is…

ericrisco/rsc-harness · 86 tokens

monochrome

Build accessible UI with monochrome, the framework-agnostic UI library for agents. Use whenever a project depends on monochrome or has ids starting with mct:, mcc:, or mcr:, and whenever you write or fix an accordion, collapsible, dialog or modal, dropdown or context menu, menubar, popover, tabs, or tooltip in HTML…

vaneenige/monochrome-ui · 97 tokens

accessibility-expert

Build interfaces usable by everyone: WCAG 2.2 conformance, semantic HTML, ARIA, keyboard navigation, screen readers and accessible forms. Use when the user mentions accessibility, a11y, WCAG, ARIA, screen readers, keyboard navigation, colour contrast, focus management, the European Accessibility Act or Section 508, or…

personamanagmentlayer/pcl · 98 tokens

wcag-accessibility

WCAG 2.2 Level AA for web UI. Use when the task is accessibility, contrast, ARIA, keyboard access, focus, screen readers, alt text, or an accessibility audit. Do not use for styling, performance, or copy that is not an accessibility fix.

LeahyCC/claude-skills · 62 tokens

Modern Web Accessibility for Interactive UI

An accessibility review for interactive interface elements such as dialogs, menus, popovers, tabs, forms, and live updates.

s977043/river-review · 60 tokens

a11y-toolkit

Use for ALL accessibility work — WCAG 2.2 audits of URLs or HTML, real rendered contrast checks (including text over images, pixel-level), color-pair contrast and nearest passing color, European Accessibility Act / RD 1112/2018 accessibility statements, pre-deploy regression detection (accessible names, tab order)…

kinti/a11y-toolkit · 143 tokens