color-expert

Provides color theory knowledge for palettes, conversions, accessibility, and pigment mixing.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TECH-HY/SKILLS --skill color-expert-tech-hy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-expert
Source: https://github.com/TECH-HY/SKILLS/tree/main/skills/color-expert
Command: npx skills add https://github.com/TECH-HY/SKILLS --skill color-expert-tech-hy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing, converting, and reasoning about colors is error-prone because common models like HSL do not match human perception, leading to muddy gradients, inaccessible contrast, and inconsistent palettes. This Skill supplies the color science knowledge needed to pick the right color space, naming system, and tooling for each task. ## Core Features & Use Cases - Color space guidance: Decision tables for OKLCH, OKLAB, HSLuv, CIELAB, CAM16, Jzazbz, and more, mapped to tasks like gradients, palettes, print, and HDR. - Accessibility and harmony rules: Concrete WCAG/APCA contrast statistics, character-first harmony principles, and the 60-30-10 rule for building legible palettes. - Pigment mixing and naming: Kubelka-Munk spectral mixing guidance (Spectral.js, Mixbox) plus naming systems from ISCC-NBS and Munsell to XKCD and CSS named colors. - Use Case: When building a design token system, use this Skill to define reference and semantic tokens in OKLCH, derive hover states programmatically, and verify APCA contrast targets. ## Quick Start Ask the agent to generate an accessible OKLCH color palette with semantic tokens for a web UI and explain the contrast choices.

Frequently Asked Questions about color-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right color space for CSS gradients?

Use OKLCH or color-mix(in oklab) for CSS gradients because they avoid the mid-gradient darkening that occurs with RGB and HSL interpolation. OKLCH also keeps lightness uniform across hues when generating palette scales.

What is the difference between OKLCH and HSL for palettes?

OKLCH is perceptually uniform, so equal lightness values look equally bright across hues, while HSL lightness is a mathematical average that makes yellow appear far brighter than blue at the same value. Use OKLCH for palette generation and OKHSL or HSLuv when you need HSL-like picker UX.

How do I simulate real paint mixing in code?

Use Kubelka-Munk spectral mixing via the open-source Spectral.js library or the commercial Mixbox SDK. Simple RGB averaging produces dull browns, while spectral mixing correctly yields results like blue plus yellow making green.

Does WCAG contrast guarantee readable text colors?

WCAG ratios are a baseline, but APCA is stricter and better models readability: only about 0.08% of random hex pairs pass APCA 90 for body text. Verify contrast with both, and consider text size, weight, polarity, and color vision deficiency.

When is HSL acceptable to use?

HSL is fine for quick color pickers, simple CSS tweaks, and cases where perceptual accuracy does not matter. Switch to OKLCH, OKLAB, or HSLuv when generating palettes, gradients, or anything requiring uniform perceived lightness and saturation.