Web tokens
Copy sRGB fallbacks followed by native OKLCH variables inside an `@supports` block.
Browser-local · No signup · No image upload
Turn one color or image into a perceptually even palette. See gamut mapping and contrast before you copy production-ready CSS, Tailwind, or design tokens.
Predictable steps, visible gamut decisions, and tokens ready for the next commit.
Production output
Method, not magic
Every result keeps the decision visible. You can inspect the original OKLCH value, the selected-gamut result, its fallback HEX, and the contrast against your chosen surface.
Parse HEX, RGB, HSL, or CSS OKLCH into perceptual lightness, chroma, and hue.
Build a lightness ramp or move through named harmony angles while keeping the relationship readable.
Reduce chroma when needed to fit sRGB or Display P3 while holding lightness and hue as steady as possible.
Export CSS fallbacks, Tailwind v4 variables, DTCG 2025.10 tokens, or a labelled SVG.
Why OKLCH
HSL lightness is not perceptually uniform. A yellow and a blue at the same HSL lightness can look very different. OKLCH gives palette work a more useful lightness axis, then makes gamut limits explicit instead of hiding them.
Learn the L, C, and H channelsBuilt for real handoff
Copy sRGB fallbacks followed by native OKLCH variables inside an `@supports` block.
Generate the familiar 50–950 scale directly inside an `@theme` block.
Export the stable DTCG 2025.10 color object with OKLCH components and HEX fallbacks.
Compare each mapped swatch with your actual surface using WCAG 2 and signed APCA Lc.
Straight answers
An OKLCH palette describes colors with perceptual lightness (L), chroma (C), and hue (H). Light and dark steps behave more predictably than equivalent changes in HSL or RGB.
No. The browser decodes the file, samples pixels, and clusters colors locally. The image, filename, and extracted colors are not sent to our analytics.
OKLCH can describe more colors than sRGB and even colors beyond Display P3. When a color does not fit your target, this tool reduces chroma and reports the resulting ΔEOK rather than silently clipping channels.
Yes. Keep the 11-step setting to produce 50–950 labels, choose the Tailwind v4 export, and copy the generated `@theme` variables.
No. WCAG 2 reports a ratio with fixed thresholds. APCA reports a signed Lc value and its guidance depends on font size and weight. APCA and WCAG 3 remain developing work, so the result here is a preview, not a WCAG 3 compliance claim.
Yes. After the first visit, use your browser’s Install app or Add to Home Screen action. The cached interface and color engine can then open offline.
Field notes
Short guides connect the color math to a specific design or developer decision.
Why one OKLCH value may need a mapped sRGB fallback.
Color theorySeparate hue relationships from the gamut boundary.
EngineeringColor conversion, gamut mapping, contrast, and local images.
ResearchA first-hand feature and mobile audit from July 2026.