better-colors

better-colors is a skill for Claude Code, Codex from memi-design/design-skills. It costs 77 tokens per session (1,390 once invoked), scanned A, a copy of oklch-skill, MIT.

A web color tool based on OKLCH, a color system designed to match how people perceive brightness and color. It works with common color formats, palettes, contrast, browser color limits, and Tailwind CSS themes.

In plain words
What is it for?
Use it to convert colors, create light and dark palettes, check WCAG or APCA contrast, handle display P3 colors, and define Tailwind design tokens.
Why use it?
It helps avoid palettes whose brightness changes unexpectedly, colors that shift hue, or text and backgrounds that fail accessibility checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert colors, create light and dark palettes, check WCAG or APCA contrast, handle display P3 colors, and define Tailwind design tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/memi-design/design-skills/better-colors
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add memi-design/design-skills --skill better-colors
Clone the repo
git clone --depth 1 https://github.com/memi-design/design-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for better-colors

README.md
[![agentmods](https://agentmods.dev/badge/skills/memi-design/design-skills/better-colors/github.svg)](https://agentmods.dev/skills/memi-design/design-skills/better-colors)
Your own site
<a href="https://agentmods.dev/skills/memi-design/design-skills/better-colors"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/better-colors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for better-colors

Your own site · 80×15
<a href="https://agentmods.dev/skills/memi-design/design-skills/better-colors"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/better-colors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,390 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01390
Opus 5 $0.00039 $0.00695
Sonnet 5 $0.00015 $0.00278
Haiku 4.5 $0.00008 $0.00139

Measured 11d ago against content hash 182bdb139c92, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

better-colors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to oklch-skill — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/better-colors/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OKLCH Colors

OKLCH is a perceptually uniform color space where the numbers actually mean what you think they mean. Most color problems in CSS (broken palettes, failing contrast, hue drift) come from using color spaces that don't match how we see. OKLCH fixes the model so the tools work. To explore interactively, visit oklch.fyi.

Quick Reference

Category When to use Reference
Conversion Hex/rgb/hsl to oklch color-conversion.md
Palettes Generate scales, multi-hue, dark mode palette-generation.md
Contrast APCA/WCAG checks, fixing failing contrast accessibility-contrast.md
Gamut & Tailwind P3 fallbacks, @theme scales, gamut clamping gamut-and-tailwind.md

Why OKLCH

  • Perceptual uniformity. Equal L steps = equal brightness. oklch(0.5 ...) is visually mid. HSL's lightness: 50% varies wildly by hue.
  • Stable hue. HSL blue shifts toward purple as lightness changes. OKLCH hue stays constant across the full lightness range.
  • Independent chroma. Chroma is an absolute measure of colorfulness that doesn't depend on lightness. HSL saturation does.
  • Finite gamut. Not every oklch value maps to a displayable sRGB color. High-chroma values at certain hues will clip; gamut awareness is required.

OKLCH Syntax

oklch(L C H)
oklch(L C H / alpha)
Channel Range Description
L (Lightness) 0–1 0 = black, 1 = white. Perceptually uniform.
C (Chroma) 0–~0.4 Colorfulness. 0 = gray. Max depends on L and H.
H (Hue) 0–360 Hue angle in degrees.
alpha 0–1 Optional transparency. Slash syntax.
oklch(0.637 0.237 25.331)
oklch(0.8 0.05 200 / 0.5)

Formatting: L and C use 3 decimal places, H uses up to 3. Drop trailing zeros. Format -0 as 0. Browser support: Baseline 2023, 96%+ global coverage.

Key Thresholds

Read the full file on GitHub · 94 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 94 lines · 77 tokens per session scan A 182bdb139c92

Subscribe to this mod's changes

better-colors is a skill published in the GitHub repository memi-design/design-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,390 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to oklch-skill, differing in 27 lines, and is treated as a copy.

Related

Other skills, from other repositories

accessibility

Use when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast, tap-target size. NOT palette or visual intent (that is design), NOT test-runner setup (that is testing-web), NOT LCP/page-speed (that is…

ericrisco/rsc-harness · 86 tokens

motion-craft

Use when an interface moves and the movement has to feel right — durations and easing, what must never animate, fixing motion that reads sluggish, cheap or janky, and reduced-motion. Web and native. NOT the visual system (that is design), NOT the graded critique (that is design-loop).

ericrisco/rsc-harness · 67 tokens

design-engineering

Premium design engineering skill for agentic workflows — produces high-end, distinctive UI designs using DESIGN.md as the portable contract across Pencil MCP (in-IDE canvas), Figma MCP (team handoff + design tokens), and Google Stitch (vibe exploration + AI generation). Enforces anti-generic principles, WCAG 2.2 AA…

broomva/skills · 231 tokens

motion-guide

Use when designing, adding, changing, suggesting, or reviewing UI motion. Motion Guide is a default-trigger motion decision advisor for AI coding agents: it decides whether motion should exist, selects an appropriate functional or expressive pattern, and constrains implementation with timing, easing, accessibility…

JarvixGaby/motion-guide-skill · 65 tokens

motion

Author verified, reduced-motion-safe web animation with MotionSpec. Use when adding scroll, entrance, hover, or loop animation to a website or web app — instead of hand-writing GSAP or CSS keyframes, write a MotionSpec JSON spec, validate it, and compile deterministic code.

MasterPlayspots/motionspec · 57 tokens

canon-interaction

Use when designing or auditing interactive states (hover, focus, active, disabled, loading), focus management, keyboard navigation, click targets, drag-and-drop, or any user input handling. Trigger when the user mentions states, focus, hover, keyboard, interaction, click, tap, or fixing how something responds.

Dragoon0x/canon · 66 tokens