What problem does it solve? Web projects often rely on hex, RGB, or HSL colors that produce inconsistent perceived brightness, hue drift across palette steps, failing contrast ratios, and out-of-gamut clipping on modern displays. This Skill provides a systematic OKLCH-based workflow for converting colors, building palettes, verifying accessibility, and theming with Tailwind v4. ## Core Features & Use Cases - Color Conversion: Convert hex, rgb(), and hsl() values to oklch() with consistent formatting, slash alpha syntax, and rules for what to leave unchanged (keywords, gradient functions, third-party configs). - Palette Generation: Build 5, 9, or 11-step numeric scales with even lightness distribution, per-step chroma clamping to the gamut boundary, multi-hue palettes using equal chroma percentages, and dark mode derivation. - Contrast & Accessibility: Measure foreground/background pairs with APCA (Lc thresholds) or WCAG 2 ratios, detect light vs dark backgrounds at the L 0.73 crossover, and fix failing pairs by adjusting lightness while preserving chroma and hue. - Gamut & Tailwind v4: Handle sRGB vs Display P3 gamut boundaries, add @media (color-gamut: p3) fallbacks, and define custom @theme color scales in oklch. - Use Case: Migrating a design system to Tailwind v4? Convert every hex token in @theme to oklch, generate a full brand scale, then verify every foreground/background pair in both light and dark appearances. ## Quick Start Convert the hex colors in my theme.css to oklch and check the text contrast against APCA thresholds.