oklch-skill

oklch-skill is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 79 tokens per session (1,339 once invoked), scanned A, original, MIT.

A guide to OKLCH, a colour system designed to make brightness and colour changes behave more consistently to human eyes.

In plain words
What is it for?
Use it to convert colours, create light and dark palettes, check accessibility contrast, and define CSS or Tailwind colour tokens.
Why use it?
It helps prevent uneven colour palettes, shifting hues, and text colours that fail contrast checks.

Skill for Claude CodeCodex

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

Good fit Use it to convert colours, create light and dark palettes, check accessibility contrast, and define CSS or Tailwind colour tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/oklch-skill
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 Kevin-Liu-01/Agent-Machines --skill oklch-skill
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

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 oklch-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/oklch-skill/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/oklch-skill)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/oklch-skill"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/oklch-skill/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 oklch-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/oklch-skill"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/oklch-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,339 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00079 $0.01339
Opus 5 $0.00039 $0.00669
Sonnet 5 $0.00016 $0.00268
Haiku 4.5 $0.00008 $0.00134

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

Security

Grade A, and why

oklch-skill 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 8d 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

Copies of this mod

1 near-identical copy found in the catalogue:

knowledge/skills/oklch-skill/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 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.

Read the full file on GitHub · 91 lines

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. 8d ago First seen · 91 lines · 79 tokens per session scan A 9a3a11b2ec5a

Subscribe to this mod's changes

oklch-skill is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed yesterday), licensed MIT. It adds 79 tokens to every session and 1,339 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

theme

Apply brand and visual direction in a Mantle application using its repo-owned theme and UI contracts.

aotter/mantle · 21 tokens

design-taste-frontend

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

dmae97/omk · 61 tokens

saglitzdesign

Design, redesign, build, restyle, improve, critique, review, audit, simplify, polish, or animate a user interface — the front door into SaglitzDesign's eight design skills, for whichever one the work actually needs. Covers landing pages, marketing sites, dashboards, app screens, components, forms, onboarding, empty…

HalidSaglam/saglitzdesign-mcp · 204 tokens

figma-code-connect-design-system

Use when a FigJam board, product requirements document, reference image, Figma design file, published library, or codebase must become or update an evidence-traceable Figma design system, DTCG token hierarchy, platform-specific UI templates, production components, and verified Code Connect mappings. Covers create…

srinitude/skills · 105 tokens

mobile-first-website-design

Use when designing landing pages and marketing websites.

srinitude/skills · 15 tokens