HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · STELLAR · ROBINHOOD · USDC · USDG

Color palette analysis

Full color analysis in one call: parse any color format, check WCAG contrast against white, and simulate all three forms of color blindness.

When to use this pack

A designer or front-end agent picked a brand color and needs the accessibility picture before committing: does it pass WCAG AA/AAA against a white background? What do protanopia / deuteranopia / tritanopia users see? What's the HSL breakdown? One pack replaces three separate calls.

Tools in this pack

Workflow

  1. Parse the color with the color tool — returns hex, RGB, HSL, and named-color lookup.
  2. Check WCAG contrast against white (#ffffff) with color-contrast — returns ratio and AA/AAA pass/fail for normal and large text.
  3. Simulate color blindness with color-blindness — returns the color as seen by protanopia, deuteranopia, and tritanopia viewers.

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Analyze the color #4ade80 using Agent402: (1) color {color: "#4ade80"} — get hex/RGB/HSL. (2) color-contrast {foreground: "#4ade80", background: "#ffffff"} — WCAG ratio + AA/AAA pass. (3) color-blindness {color: "#4ade80"} — simulated values for all three types. Return {parsed, contrast, blindness}.

← All skill packs