FICHA · MANJARO

python-wcag-contrast-ratio

Library for computing contrast ratios, as required by WCAG 2.0

  • Library
  • Dev
  • ACCESSIBILITY
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Calculates whether two colors have enough contrast for accessible text and interface elements. It helps developers and designers check WCAG 2.0 contrast rules in Python tools, tests, or content pipelines.

Use it as a library, not as a separate app. The result is a numeric accessibility check, so combine it with visual review and current accessibility guidance before approving a final design.

Permissions

Permissions not analysed for this source yet.