- Home
- Skills
- UX & UI Design
- Palette Check — Paste Hex Colors, Get Contrast Ratios
Palette Check — Paste Hex Colors, Get Contrast Ratios
Send pairs of text and background hex colors. Get contrast ratios with the formula and AA/AAA checks for body and large text.
$5
Works with the AI Agents you already use
Palette Check — Paste Hex Colors, Get Contrast Ratios
Example session with this skill installed
body | #333333 | #ffffff
large heading | #6b21a8 | #ffffff
soft pair | #777777 | #ffffff
- Read your context and instructions
- Compiled the palette check
Palette Check: contrast ratios
Line | Label | Text | Background | Ratio | Body AA/AAA | Large AA/AAA
1 | body | #333333 | #FFFFFF | 12.63:1 | Yes/Yes | Yes/Yes
2 | large heading | #6B21A8 | #FFFFFF | 8.72:1 | Yes/Yes | Yes/Yes
3 | soft pair | #777777 | #FFFFFF | 4.48:1 | No/No | Yes/No
Formula: (lighter relative luminance + 0.05) / (darker relative luminance + 0.05)
Thresholds: normal AA 4.5:1, AAA 7:1; large AA 3:1, AAA 4.5:1.
Connects securely to your tools. The creator never sees your data.
About this skill
Send pairs of text and background hex colors, one pair per line. Get contrast ratios with the formula and AA/AAA checks for body and large text.
Input: #TEXT #BACKGROUND, or label | #TEXT | #BACKGROUND. Short #RGB and full #RRGGBB hex forms are accepted. Input is limited to 100,000 bytes and 500 lines.
Output: a report in text, markdown, json or csv, with the formula. The ratio is checked against fixed WCAG thresholds: body AA 4.5:1, body AAA 7:1, large text AA 3:1 and large text AAA 4.5:1. The report can be saved to a new file; existing files are never overwritten.
Limits: Palette Check calculates only the supplied color codes. It does not create colors, judge aesthetic quality, inspect images, gradients, opacity, font size, weight or states, and it is not an accessibility audit. Check the actual interface before relying on a result.
Included: the Python script, unit tests, a sample input and its sample report, and a README.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.
Supports only opaque hex values. No support for transparency, gradients, or CSS variables. Maximum 500 lines or 100kb per run. Does not inspect rendered UI.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python 3.9+