# Accessible Colour Palette & WCAG Contrast Checker

> Get a light theme of CSS colour tokens whose WCAG 2.2 contrast is solved and checked, not guessed.

Accessible Colour Palette & WCAG Contrast Checker is a free AI agent skill on Agensi by Alex, in UX & UI Design. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Alex](https://www.agensi.io/creators/alex-17)
- Category: [UX & UI Design](https://www.agensi.io/skills/ux-ui-design)
- Version: 0.2.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/accessible-colour-palette-wcag-contrast-checker
- Tags: ui-ux, accessibility, css, web-design, wcag

## What it does

- Builds a light theme of CSS colour tokens from your brand colours
- Checks an existing stylesheet, such as a shadcn or Tailwind theme, for contrast failures
- Shows a report with the contrast each colour needs and the contrast it gets
- Tells you whether one colour passes on a background, never rounding a near miss up
- Re-checks your tokens file after anyone edits it by hand

## Who it's for

- **Founders and makers with a brand colour:** Get a full set of readable colours for your site built around the brand colour you already have. Try: "Make an accessible colour palette for my site from #2563eb."
- **Front-end developers using shadcn or Tailwind:** Find out which colour pairs in your globals.css fail contrast, with the exact ratio for each. Try: "Check whether the colours in app/globals.css pass WCAG contrast."
- **Designers checking accessibility:** Get a straight pass or fail for a colour on a background, with the real ratio. Try: "Does #8a8a8a pass as body text on white?"
- **Freelancers building client sites:** Hand over colour tokens with a contrast report that shows every pair holds. Try: "Set up accessible colour tokens for a client site from brand colour #0f766e."

## About this skill

Picking text and button colours that are readable for everyone usually means trial and error with a contrast checker. This skill hands that work to a small command-line tool that does the maths. Your AI agent runs the tool and passes on the report it prints. It never works out a ratio itself.

**What you can ask for**
- **A new palette:** give your brand colour and get `tokens/tokens.css`, a light theme of text, surface, border, status and accent colours. Every pair is solved to meet WCAG 2.2 contrast, and the tool prints a report as proof.
- **A check of colours you already have:** point it at your `globals.css` or `tokens.css`. It works out which colours are painted on which, grades each pair, and lists any that fail.
- **A quick answer:** ask whether one colour passes on a background. A near miss counts as a fail. It is never rounded up to a pass.

Your brand colour is kept as given wherever it already passes. If it falls short, it moves only as far as it must, and the report tells you.

This is the free version. The paid oklch-solver skill adds dark themes, Tailwind v4 and DTCG output, fixing a single colour, and repairing an existing palette.

## Requires

- Node.js 22.13+
- npm (npx)
- @polykinesis/oklch-solver-cli
- downloads
- command.

## Known limitations

Light themes only. It does not make dark themes, output Tailwind v4 or DTCG formats, suggest a passing value for a colour that fails, or repair an existing palette. Those are in the paid oklch-solver skill. The stylesheet check reads one file and does not follow @import.

## Technical details

Runs the pinned CLI @polykinesis/oklch-solver-cli@0.2.0 through npx. npx downloads it from the npm registry on first use. The CLI makes no network requests of its own and reads no environment variables. Needs Node 22.13 or later. Commands: init writes oklch-solver.json from brand colours; solve writes tokens/tokens.css as CSS custom properties in oklch(); audit grades a tokens.css against its config; pairs drafts pairs.json beside an existing stylesheet; check grades that stylesheet's colour pairs; fit reads one colour's ratio on a background. Contrast follows WCAG 2.2: 4.5:1 for text and 3:1 for large text and meaningful non-text, with ratios floored rather than rounded. Exit codes: 0 pass, 1 unmet, 2 invalid input, 3 CLI bug, 4 paid feature.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Accessible Colour Palette & WCAG Contrast Checker skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Accessible Colour Palette & WCAG Contrast Checker do?

Get a light theme of CSS colour tokens whose WCAG 2.2 contrast is solved and checked, not guessed.

### Which AI agents support Accessible Colour Palette & WCAG Contrast Checker?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Accessible Colour Palette & WCAG Contrast Checker?

Connect your AI agent to Agensi through MCP, then ask it to use Accessible Colour Palette & WCAG Contrast Checker on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
