# UI & Brand Palette Audit (OKLCH / APCA)

> Audit any UI, logo, or poster palette against OKLCH/APCA contrast, CVD simulation, ΔE drift, and semantic-colour rules — and get a prioritized, actionable fix list.

UI & Brand Palette Audit (OKLCH / APCA) is a free AI agent skill on Agensi by Dkan, in UX & UI Design. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Dkan](https://www.agensi.io/creators/dkan)
- Category: [UX & UI Design](https://www.agensi.io/skills/ux-ui-design)
- Version: 1.1
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ui-brand-palette-audit-oklch-apca
- Tags: ui-ux, branding, accessibility, design-audit, palette, oklch, contrast, wcag

## About this skill

### What it does

Most colour feedback is taste. This skill makes it measurable.

It audits a palette — website UI, app UI, logo, poster, packaging, or a
brand colour board — against explicit colour-engineering rules, then
returns a report split into three buckets: **keep**, **must-fix**,
**optional polish**. Every finding carries a concrete correction, not an
opinion.

### What it checks

- **OKLCH lightness and chroma** — whether the ramp has a spine or drifts
- **APCA contrast** for text-on-background pairs (WCAG 2.1 as fallback)
- **Colour-vision deficiency** — protan, deutan, tritan survival
- **ΔE drift** between the intended and rendered colour
- **Semantic colour discipline** — does red mean error everywhere, or nowhere
- **Gamut** — how much of the palette falls outside sRGB / P3
- **Hue budget** — too many hues competing at the same visual weight
- **"AI-template" smell** — the generic gradient-on-purple that reads as machine-made

### Two ways in

1. **Extract & store.** Point it at a reference image; it extracts the
   palette, tags it by role and scene, and files it as a candidate entry
   in a palette library.
2. **Audit & repair.** Lock the brand baseline first, then run the ordered
   pipeline — grid → colour → icons → copy → type hierarchy → layout →
   detail → imagery → motion — and stop at the colour findings.

Output is split into keep / must-fix / optional, with a P0–P3 severity on
each finding, so you can tell "never ships" from "nice to have".

### What it isn't

Not a palette generator, not a mood-board toy, and not a colour picker.
It judges an existing palette against rules. It also refuses architectural
drawings and construction specs — out of scope by design.

### Requirements

- Python 3.10+ for the two bundled scripts
- The audit script is **stdlib-only** — no network calls, no API keys
- Image extraction needs **Pillow + numpy**; it reports clearly if either is missing
- Everything else is Markdown references the agent reads on demand

### License

MIT. The source is public on GitHub — buy nothing here you could already clone.

## Requires

- Python 3.10+
- Optional: Pillow
- Optional: numpy

Runs two local Python scripts. No network access, no API keys. The audit script is stdlib-only; image extraction additionally needs Pillow and numpy. Writes only to the palette store path the user passes with --store.

## Known limitations

Excludes construction/architectural blueprints. Requires manual verification for color role assignments. AI optimization rounds require explicit user approval for each step.

## 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 UI & Brand Palette Audit (OKLCH / APCA) 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

### How does this audit differ from just asking a standard AI agent if my colors look good?

Unlike basic prompts that rely on subjective 'feel,' this skill uses a 9-stage systematic check powered by APCA and OKLCH algorithms to provide objective, mathematical proof of accessibility and color harmony.

### What's included in this skill?

Two Python scripts — palette extraction and the OKLCH/APCA audit — plus a
scoring rubric that rates every finding P0 to P3, five reference documents
(colour engine, palette schema, rubric, review principles, polish workflow),
and a report template. Everything is plain text your agent reads on demand.
No API keys, no hosted service.

### Can I use this skill to ensure my designs stay consistent with an existing brand book?

Yes, you can define specific brand baselines and prohibited colors, allowing the skill to flag any deviations from your established identity during the technical diagnosis phase.

### Are there any specific types of design projects this skill cannot audit?

This skill is optimized for branding (logos and ads) and UI (interfaces); however, it is not intended for industrial manufacturing, construction blueprints, or national physical safety standards.

### Does the audit support modern accessibility standards like APCA for web design?

The skill uses the modern APCA (Accessible Perceptual Contrast Algorithm) standard, which better reflects how the human eye perceives color on screens compared to traditional WCAG 2.1 ratios.

### What is required to start my first color audit once I've added the skill?

Nothing beyond Python 3.10+. Send it an image and it extracts the palette
and files it as a candidate entry. Ask for an audit ("check this palette",
"does this pass contrast") and it runs the full audit and returns a
keep / must-fix / optional report with P0-P3 severities. The two paths are
deliberately separate: a screenshot alone is reference material, not
something to grade.

### Does it need an API key or internet access?

No. Both scripts run locally. The audit script is stdlib-only and makes
no network calls. Image extraction additionally needs Pillow and numpy,
which are marked optional.

### What language is the report in?

Chinese by default — the rubric and reference docs were written for a
Chinese design audience. Ask your agent for English output and it will
translate the findings.

---

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.
