Skip to content

Agent: Contrast Master

github-actions[bot] edited this page Feb 23, 2026 · 3 revisions

contrast-master - Color Contrast and Visual Accessibility

Verifies color contrast ratios, checks dark mode, ensures focus indicators are visible, validates that no information is conveyed by color alone, and provides comprehensive guidance on user preference media queries.

When to Use It

  • Choosing colors or creating themes
  • CSS styling, Tailwind classes, or design tokens
  • Dark mode implementation
  • Focus indicator design
  • Any use of color to convey state (error, success, warning)
  • Design system compliance

What It Catches

Expand - 8 contrast issues detected
  • Text below 4.5:1 contrast ratio (3:1 for large text)
  • UI components below 3:1 contrast
  • Focus indicators below 3:1 contrast
  • Information conveyed by color alone (red/green for error/success without text or icons)
  • Disabled state contrast issues
  • Dark mode regressions
  • Transparent backgrounds that change with context
  • Opacity levels that reduce effective contrast

What It Will Not Catch

Non-visual issues (ARIA, keyboard, live regions). It owns the visual/color domain exclusively.

User Preference Media Query Coverage

Expand media query coverage
  • prefers-reduced-motion - disabling animations, handling JS-driven motion, framework patterns
  • prefers-contrast: more - upgrading subtle colors, removing transparency, increasing borders
  • prefers-color-scheme - dark mode with proper contrast re-verification
  • forced-colors - Windows Contrast Themes, system color keywords, SVG handling
  • prefers-reduced-transparency - solid fallbacks for frosted glass and overlays
  • Combined preferences (e.g., dark + high contrast) and JavaScript detection

Example Prompts

Show example prompts

Claude Code

/contrast-master check all color combinations in globals.css
/contrast-master is #767676 on white accessible for body text?
/contrast-master review the dark mode theme
/contrast-master check focus indicator visibility in this component

GitHub Copilot

@contrast-master review the color palette in this design system
@contrast-master are these Tailwind colors accessible for text?
@contrast-master check contrast in the error state

Behavioral Constraints

Expand constraints
  • Uses exact WCAG contrast ratio math (relative luminance formula, not eyeballing)
  • Reports exact ratios, not just pass/fail
  • Checks both light and dark modes when both exist
  • Flags opacity and rgba values that may reduce contrast below the context background

Getting Started

Agents

Orchestrators

  • Accessibility Lead
  • Web Accessibility Wizard
  • Document Accessibility Wizard

Web Specialists

  • Alt Text and Headings
  • ARIA Specialist
  • Contrast Master
  • Forms Specialist
  • Keyboard Navigator
  • Link Checker
  • Live Region Controller
  • Modal Specialist
  • Tables Data Specialist

Document Specialists

  • Word Accessibility
  • Excel Accessibility
  • PowerPoint Accessibility
  • PDF Accessibility
  • Office Scan Config
  • PDF Scan Config

Learning

  • Testing Coach
  • WCAG Guide

Scanning

Tools

Advanced

Clone this wiki locally