contrast-checker

Analyze CSS and JS color pairs for WCAG contrast violations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/scamai/scamai-landing --skill contrast-checker-scamai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contrast-checker
Source: https://github.com/scamai/scamai-landing/tree/main/.agents/skills/contrast-checker
Command: npx skills add https://github.com/scamai/scamai-landing --skill contrast-checker-scamai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Color contrast issues in UI codebases undermine accessibility and readability. This Skill analyzes foreground/background color pairs to help you meet WCAG requirements and prevent color-related accessibility problems.

Core Features & Use Cases

  • Calculate contrast ratios for normal and large text according to WCAG 2.1.
  • Detect violations in CSS/JS/inline styles and propose accessible color alternatives.
  • Use Case: Audit a UI theme in a web app to ensure all text and UI elements meet contrast standards without modifying brand colors.

Quick Start

Analyze color pairs in your CSS/JS files and start fixing WCAG violations.

Frequently Asked Questions about contrast-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check WCAG color contrast ratios in my CSS and JS files?

To check WCAG color contrast in your code, this Skill analyzes foreground and background color pairs across CSS, JS, and inline styles. It calculates contrast ratios and identifies violations for both normal and large text according to WCAG 1.4.3 standards.

What is the minimum contrast ratio needed for UI components under WCAG?

The minimum contrast ratio for UI components under WCAG is evaluated against standard 1.4.11. This Skill detects non-text UI component contrast violations in your codebase and provides precise ratio measurements alongside actionable color recommendations to ensure compliance.

How do I fix accessibility color contrast issues without changing my brand colors?

To fix accessibility color contrast issues while preserving brand identity, this Skill provides actionable color recommendations that adjust brightness to meet WCAG requirements while maintaining the original hue. It targets non-compliant pairs directly in your code.

Can I audit inline styles and JavaScript for accessibility contrast violations?

Yes, you can audit inline styles and JavaScript for accessibility contrast violations. The Skill scans CSS, JS, and inline style definitions to extract foreground and background color pairs, assessing them for WCAG 2.1 compliance and reporting exact violations.

What's the best way to find color pairs failing WCAG 1.4.3 contrast standards in a web app?

The best way to find color pairs failing WCAG 1.4.3 contrast standards is to analyze your codebase structure directly. This Skill evaluates all foreground and background color pairings in your code, reporting exact contrast ratios and suggesting accessible color alternatives.