OKLCH Modern CSS Studio • 100% Free CSS Color Module Level 4

CSS Gradient Generator: Linear, Radial & OKLCH Studio

Design buttery-smooth CSS gradients with in oklch perceptual interpolation. Eliminate muddy gray dead-zones between opposing hues, dial in precise multi-stop color ramps, and copy instant production tokens for Tailwind CSS v4, CSS Variables, and Apple SwiftUI.

Curated Presets:
Live Interpolation Canvas

Pikka Gradient Studio

Perceptually uniform color transitions without the muddy gray zone.

100% Client-Side Render
Color Stop Distribution 0% to 100% spectrum
Active Color Stops

Gradient Configuration

CSS Color Module 4
135°

Code & Token Exports

/* Generating CSS gradient... */

Why OKLCH Eliminates the "Muddy Middle" in Digital Gradients

For over 25 years, web browsers blended gradients using linear mathematical interpolation in standard sRGB space. When blending complementary colors—such as blue (#3B82F6) to yellow (#F59E0B)—the middle pixels pass directly through an ugly desaturated gray-brown "dead zone". OKLCH (Oklab Lightness Chroma Hue) fixes this fundamental flaw.

Perceptual Uniformity

OKLCH is mapped to human visual perception. Equal mathematical steps correspond to equal perceived differences in lightness and saturation, ensuring smooth gradients that look natural to the human eye.

Vibrant Chroma Preservation

By interpolating along the hue cylinder rather than cutting straight through the RGB color cube, OKLCH gradients maintain vibrant saturation across every intermediate color stop.

Cross-Browser Support

Supported natively across Chrome 111+, Safari 16.2+, Firefox 113+, and Edge. Modern web development frameworks like Tailwind CSS v4 leverage OKLCH for design systems by default.

Frequently Asked Questions

What is the syntax for CSS in oklch gradients?

The modern syntax is background: linear-gradient(in oklch 135deg, #3B82F6 0%, #EC4899 100%);. You simply add the in oklch interpolation descriptor right after the opening parenthesis before specifying the angle or color stops.

How do I export this gradient into Figma?

Click the Download as Vector SVG button or switch to the SVG tab and copy the code. Drag and drop the downloaded SVG file into your Figma canvas—Figma will instantly parse the vector path with its native gradient fill!

How do I use this gradient in Tailwind CSS v4?

In Tailwind v4, declare a custom utility in your main CSS file using @utility bg-gradient-brand { background-image: ... }, or apply an arbitrary property class directly on your HTML element like class="bg-[linear-gradient(135deg,#3B82F6_0%,#EC4899_100%)]".