color-expert

Guides color selection, conversion, and palette generation across color spaces and design workflows.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/pnewsam/skills --skill color-expert-pnewsam
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: color-expert
Source: https://github.com/pnewsam/skills/tree/main/archive/color-expert
Command: npx skills add https://github.com/pnewsam/skills --skill color-expert-pnewsam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing, converting, and reasoning about color is error-prone: HSL misleads perception, gradients go muddy, palettes fail accessibility checks, and pigment mixing defies intuition. This Skill provides a comprehensive color knowledge base so you get correct, perceptually grounded answers and working code instead of guesswork. ## Core Features & Use Cases - Color space guidance: Know when to use OKLCH, OKLAB, HSLuv, CAM16, CIELAB, or Kubelka-Munk spectral mixing for palettes, gradients, print, HDR, or paint simulation. - Palette and ramp generation: Build perceptually uniform design-token scales, generative-art palettes, and accessible ramps using tools like Poline, RampenSau, Culori, and Spectral.js. - Accessibility verification: Check text/background pairs against WCAG and APCA thresholds, with realistic pass-rate statistics to set expectations. - Use Case: You need a 9-step accent scale for light and dark mode. The Skill recommends building it in OKLCH, structuring reference-to-semantic-to-component tokens, and verifying every text pair against APCA in both themes. ## Quick Start Ask the color expert to build an accessible 9-step OKLCH accent scale for light and dark mode with semantic design tokens.

Frequently Asked Questions about color-expert

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

FAQPage Schema
How do I generate a perceptually uniform color palette?▼

Build palettes in OKLCH, which keeps lightness consistent across hues and avoids muddy mid-tones. Use tools like Poline for anchor-based interpolation, RampenSau for hue-cycling with easing, or Huetone for interactive LCH/OKLCH scale building.

What color space should I use for CSS gradients?▼

Use OKLCH or color-mix(in oklab) for CSS gradients. RGB and HSL interpolation causes mid-gradient darkening and gray dead zones, while OKLAB-based interpolation keeps transitions perceptually smooth.

APCA vs WCAG contrast: which should I use?▼

APCA is far more restrictive and perceptually accurate than WCAG. Only about 12% of random color pairs pass WCAG 4.5:1, while just 0.08% pass APCA 90. Use APCA 75 for fluent reading text and verify in both light and dark modes.

Why does mixing blue and yellow paint not behave like RGB mixing?▼

Pigment mixing follows spectral reflectance, not RGB averaging. RGB mixing curves inward and produces dull browns, while Kubelka-Munk spectral mixing (via Spectral.js or Mixbox) retains chroma and yields vivid secondaries like green from blue and yellow.

When is HSL fine to use and when should I avoid it?▼

HSL is fine for quick color pickers and simple CSS tweaks where perceptual accuracy does not matter. Avoid it for palette generation, gradients, or accessibility work, since its lightness and saturation channels do not match human perception; use OKLCH or HSLuv instead.

How do I simulate paint-like color mixing in code?▼

Use Spectral.js (open source) or Mixbox (commercial), which implement Kubelka-Munk spectral mixing for realistic pigment behavior. For a painterly feel without spectral math, RYBitten converts between RGB and RYB with 26 historical color cubes.