apca-cli

APCA-CLI lets an agent check color contrast against APCA or WCAG standards. This helps anyone building UIs with models ensure their designs stay accessible. The repository includes a skill you can add to your agent so it knows when and how to use the tool.

apca-cli — contrast checker
APCA contrast checker
A working browser demo. Edit the command, then press Enter or Run.
Try 17px to see this pair pass. Type help for options or clear to reset.
$ apca-cli check "#595959" "#ffffff" --font-size 16 --font-weight 400
FAIL — minimum 16.75px at weight 400. foreground: #595959 background: #ffffff font: 16px / weight 400 Lc: 84.29 Based on the APCA font-size / weight lookup.
npx apca-cli check "#505050" "#ffffff"

apca-cli on GitHub