OKLab & OKLCH Gradient Generator
Create smooth multi-stop CSS linear and radial gradients interpolated in OKLab or OKLCH — avoiding muddy gray zones between complementary colors.
No Gray Zone
- 100% browser-local
- Zero server transfers
- CSS Color 4 precision
or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Enter two Hex/OKLCH colors or inspect live contrast
Instant Before & After Specimen
Dead-Zone-Free OKLAB vs sRGB Preview#2563EB
---
#FACC15background: linear-gradient(135deg in oklab, #2563EB 0%, #FACC15 100%);How to use OKLab Gradient Builder
OKLab Gradient Builder — cleanly inside your local browser with zero server transfers.
- Set foreground & backgroundEnter Hex, RGB, or OKLCH values for both colors or sample directly with the eyedropper.
- Evaluate scores & pathsInspect live WCAG 2.2 / APCA scores, CIEDE2000 distance, or OKLab gradient interpolation.
- Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.
Format specs:OKLab (.css)
Frequently asked questions
Why do blue-to-yellow gradients turn muddy gray in standard CSS?
Default sRGB interpolation cuts straight across the neutral middle of the gamma cube; OKLab keeps chromatic vibrancy intact.
Does it include fallback stops for legacy browsers?
Toggle sRGB Midpoint Fallback in options to insert interpolated hex stops automatically.