CSS Free, no sign-up

OKLCH Color Picker & Palette Generator

In old HSL, yellow looks blindingly light while blue looks dark at the exact same 50% lightness. The modern CSS oklch() space is perceptually uniform: equal Lightness guarantees consistent visual weight and unlocks the vibrant Display P3 wide-gamut spectrum.

Result
Ready-made CSS
:root {
  --brand-color: oklch(65% 0.22 145);
  --brand-light: oklch(92% 0.06 145);
  --brand-dark:  oklch(35% 0.16 145);
}

How to use it

  1. Select a curated preset (Electric Violet, Cyber Neon, Vivid Emerald, Solar Amber, Ocean Sky).
  2. Fine-tune Lightness (L), Chroma (C), Hue (H), and Alpha (A) with responsive sliders.
  3. Explore the auto-generated 5-step design system tonal scale and complementary harmony swatches.
  4. Copy production-ready oklch() CSS tokens alongside fallback HEX values.

How it works

Why OKLCH outperforms HEX, RGB, and HSL

OKLCH is a perceptually uniform color space aligned with human biology. Unlike HSL, where lightness numbers are inconsistent across different hues, OKLCH ensures L = 0.7 has the exact same perceived brightness whether the color is blue, green, or yellow, making accessible contrast predictable.

Display P3: Colors impossible in sRGB

Traditional HEX and RGB are locked into 1990s sRGB screens. Modern iPhones, Macs, and OLED devices render 25% more vivid color. OKLCH directly addresses this extended gamut for ultra-punchy neon accents without clipping.

/* Punchy wide-gamut accent inaccessible via standard HEX */
.cta-btn {
  background: oklch(68% 0.28 145);
}

Effortless Design System Scales

Building color tokens is trivial in OKLCH: lock your brand's Hue and Chroma, then generate predictable 100–900 lightness steps for background, hover, border, and text tokens effortlessly.

FAQ

What is browser support for OKLCH?

OKLCH is supported across all major browsers (Chrome 111+, Safari 15.4+, Firefox 113+, Edge 111+) with over 93% global adoption.

What is the Chroma value range?

Chroma represents color intensity. 0 is pure monochrome gray, 0.1–0.18 covers natural UI hues, and 0.22+ produces intense wide-gamut accents.

How to provide legacy browser fallbacks?

Use standard cascading fallbacks: write background: #4f46e5; first, followed by background: oklch(...);. Modern browsers will automatically use OKLCH.

This topic in the HTML & CSS course

More CSS tools

CSS gradient generator Linear, radial and conic gradients: pick colors, angle and stops, then copy the code. Flexbox generator and playground Try flex properties on a container and its items: direction, alignment, gaps and ready-made CSS. CSS Grid generator Set columns and rows, gaps and alignment, then copy the ready-made grid code. CSS box-shadow generator Pick offset, blur, color and layers for a shadow, then copy the ready-made box-shadow code. Cubic-bezier generator Drag the control points of an easing curve and copy the ready-made CSS transition. SVG animation generator Pick a shape and an effect — get inline SVG and CSS keyframes ready to paste. CSS specificity calculator Type selectors to see their (a,b,c) weight, a color-coded breakdown and which rule wins. CSS box model visualizer See content, padding, border and margin as a DevTools-style diagram and copy the CSS. CSS transform generator Move, rotate, scale and skew an element, see its original position and copy the code. CSS clamp() calculator Enter min and max font size and viewport width — get a ready clamp() for fluid typography. Color contrast checker (WCAG) Check text and background contrast against WCAG AA and AAA, and fix a failing pair of colors. CSS clip-path generator Polygons, bevels, arrows and circles: drag control points on the live canvas and copy ready-made CSS. CSS glassmorphism generator Frosted glass effect: backdrop-filter blur, saturation, border highlight and clean CSS. CSS border-radius (Blob) generator Organic shapes and 8-value border-radius: tune horizontal and vertical corner radii. CSS Stacking Context & z-index Visualizer Why z-index: 9999 fails! Explore CSS Stacking Contexts in interactive 3D exploded layers with transform, opacity and isolation triggers. CSS aspect-ratio & object-fit Generator Eliminate squished images & CLS layout jumps: live aspect-ratio proportions and interactive object-position focal point. CSS Filters Studio & Generator Photo effects without design tools: blur, contrast, hue-rotate, sepia, and trending Instagram-style presets. CSS Scroll-driven Animations Generator Scroll-linked animations without JavaScript: animation-timeline scroll() & view(), reading progress bar & reveal on scroll. CSS Container Queries (@container) Generator Beyond viewport media queries: components adapt directly to their parent container width. Live resizer & @container rules.
WhatsApp