SuperAPI AI Directory

contrast

General & other

View repository

Updated 10-16 05:44

About this skill

/contrast — WCAG Contrast Checker

Usage

/contrast [foreground] [background]

Output

Calculate relative luminance and contrast ratio. Report:

  • Ratio (e.g., 7.2:1)
  • Normal text AA (4.5:1): PASS/FAIL
  • Normal text AAA (7:1): PASS/FAIL
  • Large text AA (3:1): PASS/FAIL
  • Large text AAA (4.5:1): PASS/FAIL
  • UI components (3:1): PASS/FAIL

If any check fails, suggest the nearest color that would pass.