OKLCH.xyz

OKLCH Palette Generator

Turn one brand color into a full 50–950 production scale with live component preview.

50
#edf9ff
19.6:1 · Pass
sRGB
100
#d3eaff
16.9:1 · Pass
sRGB · ΔE 7.2
200
#a8ceff
13.0:1 · Pass
sRGB · ΔE 9.8
300
#81b4ff
9.9:1 · Pass
sRGB · ΔE 7.7
400
#5e9bff
7.6:1 · Pass
sRGB · ΔE 7.2
500
#3b82f6
5.7:1 · Pass
sRGB · ΔE 8.0
600
#2863c1
5.8:1 · Pass
sRGB · ΔE 12.7
700
#1b4994
8.6:1 · Pass
sRGB · ΔE 9.6
800
#0f326b
12.4:1 · Pass
sRGB · ΔE 8.3
900
#061e45
16.5:1 · Pass
sRGB · ΔE 7.6
950
#031433
18.2:1 · Pass
sRGB · ΔE 3.7
Component preview
Badge
Alert. A card / alert tinted with the generated scale to preview real UI usage.
:root {
  --brand-50: oklch(0.976 0.015 225.93);
  --brand-100: oklch(0.926 0.038 247.2);
  --brand-200: oklch(0.842 0.08 254.37);
  --brand-300: oklch(0.765 0.121 257.47);
  --brand-400: oklch(0.695 0.16 259.75);
  --brand-500: oklch(0.623 0.188 259.81);
  --brand-600: oklch(0.514 0.161 259.81);
  --brand-700: oklch(0.419 0.134 259.81);
  --brand-800: oklch(0.329 0.107 259.81);
  --brand-900: oklch(0.243 0.079 259.81);
  --brand-950: oklch(0.2 0.066 259.81);
}

A palette, not a single color

A production color system needs a full ramp — background tints, borders, text and accent shades. This generator builds all eleven steps at once and previews them on real buttons, badges and alerts so you can judge them in context.

Accessibility data at every stop

Each step reports its contrast against black and white, and flags whether it fits sRGB. Pick text/background pairs whose ratio clears WCAG for your use case.

Frequently asked questions

How are the color scales generated?

Lightness follows a non-linear curve, chroma peaks mid-scale and tapers at the ends, hue stays fixed, and every step is gamut-mapped to your target space.

Can I export to Tailwind or CSS variables?

Yes — switch the export tab to Tailwind v4, Tailwind v3, CSS Variables, SCSS, JSON Tokens or Style Dictionary and copy the whole block.

Does it support wide-gamut P3?

Choose the P3 or Rec.2020 gamut to keep more chroma at the vivid steps; sRGB stays the safe default.

Related tools