1. Home
  2. Color
  3. Tailwind OKLCH Theme Studio

Tailwind OKLCH Theme Studio

Build OKLCH 50-950 scales, shadcn/ui themes, and WCAG + APCA contrast audits locally.

Runs in your browser · No upload

OKLCH 50-950 Scale (--color-brand-*)

Perceptually uniform 11-step palette. Click any swatch to inspect OKLCH, HEX, Display-P3, and contrast.

Selected stop: 500
OKLCHoklch(0.62 0.2038 37.96)
HEX (sRGB)#e54800
Display-P3color(display-p3 0.8396 0.3192 0.1187)
GamutDisplay-P3 wide
On White3.99:1 / Lc 65.9
On Black4.98:1 / Lc -35.6

Live shadcn/ui Component Preview

Light Mode

Workspace Notification Settings

Every generated CSS variable updates buttons, inputs, badges, and cards in real time.

PrimaryAccentMuted
Generated Tokens
30
11 scale stops + 19 semantic variables
Automatic contrast harmonizationForeground inks, muted labels, and focus rings adapt cleanly across both Light and Dark themes.

WCAG 2.1 + APCA Contrast Audit

WCAG AA Pass: 7 / 7 pairs
Semantic PairSampleWCAG 2.1APCA (Lc)
Foreground / BackgroundReadable Aa18.91:1AAALc 103.9Body
Card Text / CardReadable Aa19.38:1AAALc 105.6Body
Primary Text / PrimaryReadable Aa4.96:1AALc 38Fail
Secondary Text / SecondaryReadable Aa15.04:1AAALc 93.5Body
Muted Text / MutedReadable Aa6.24:1AALc 75.5Body
Accent Text / AccentReadable Aa16.63:1AAALc 94.1Body
Destructive Text / DestructiveReadable Aa4.9:1AALc 37.8Fail

What Is Tailwind OKLCH Theme Studio?

Tailwind OKLCH Theme Studio is a local browser design-system workbench that turns a single brand color into a perceptually uniform Tailwind CSS v4 50-950 OKLCH scale and harmonized light and dark shadcn/ui CSS variables. Every OKLCH conversion, Display-P3 gamut calculation, and WCAG + APCA contrast check runs 100% locally in your browser with zero uploads.

Key Capabilities & Workflow

  • Perceptually Uniform OKLCH 50-950 Scale: Unlike legacy HSL palettes where blues look much darker than yellows at identical lightness percentages, OKLCH keeps visual brightness consistent across all 11 stops from 50 to 950. Inspect oklch(), sRGB HEX, and color(display-p3 ...) values for every swatch with one-click copy.
  • Live shadcn/ui Component Preview: Tune Primary, Accent, Destructive hues, neutral gray base (Slate, Zinc, Stone, Neutral, or Brand Tinted), chroma intensity, and --radius while previewing realistic buttons, inputs, badges, alerts, and cards across Light and Dark modes.
  • Automatic WCAG 2.1 + APCA Contrast Audit: Verify all 7 critical foreground/background semantic pairs with exact WCAG 2.1 ratios (AAA, AA, AA-Large) alongside modern perceptual APCA (Lc) ratings so text stays legible before shipping.
  • Instant Copy & Download Formats: Export clean Tailwind CSS v4 @theme inline blocks, drop-in shadcn/ui :root / .dark CSS variables, or structured W3C Design Tokens JSON (.tokens.json) for Figma and multi-platform pipelines.

Frequently Asked Questions

Should I export OKLCH, HEX, or Display-P3?

Tailwind CSS v4 defaults to oklch(), which is supported natively by modern Chrome, Safari, Edge, and Firefox. Switch the output color space to HEX for maximum legacy compatibility or Display-P3 when targeting wide-gamut displays.

Are my custom themes saved locally?

Yes. Changes auto-save inside your browser storage (IndexedDB) after roughly 1.2~5 seconds so you can restore your last theme on return or clear only this studio’s local saves whenever you want.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.