-
Notifications
You must be signed in to change notification settings - Fork 6
Agent: Contrast Master
github-actions[bot] edited this page Feb 23, 2026
·
3 revisions
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.
- 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
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
Non-visual issues (ARIA, keyboard, live regions). It owns the visual/color domain exclusively.
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
Show example prompts
/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
@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
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
opacityandrgbavalues that may reduce contrast below the context background
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide