Format Converter
HSL to OKLCH Converter
Migrate legacy CSS HSL design tokens into perceptually uniform OKLCH values for balanced themes and gradients.
Converted (OKLCH)
oklch(0.644 0.216 16.8)
#F43E5C
Try presets:
How to Use This Tool
- Enter or paste your HSL value or choose one of the curated preset swatches.
- Copy the formatted OKLCH value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
- Click into Tailwind Scale Generator or Contrast Checker to validate accessibility on the converted shade.
Key Features
- Bidirectional parsing supporting CSS Color Level 4 syntax cleanly
- HSL colors convert into gamma-decoded linear sRGB and OKLab before deriving perceptual lightness L (0–1), chroma C, and accurate OKLCH hue H.
- Instant clipboard feedback with live OKLCH and Display-P3 gamut safety
- Zero server round-trips—every calculation executes immediately in browser memory
Upgrading Cylindrical HSL into Perceptual OKLCH
HSL colors convert into gamma-decoded linear sRGB and OKLab before deriving perceptual lightness L (0–1), chroma C, and accurate OKLCH hue H.
Reference Snippet (CSS Theme Token)
:root {
--brand-legacy: hsl(350 89% 60%);
--brand-oklch: oklch(0.645 0.215 16.4);
}Frequently Asked Questions
HSL treats geometric RGB averages equally without human eye luminosity weights, whereas OKLCH L matches human luminance sensitivity across all hues.
More Color Tools
View all tools →Color Converter
Convert single or bulk colors across HEX, RGB, HSL, OKLCH, P3, CMYK, and mobile formats.
Open tool
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Open tool
Tailwind Color Scale
Turn any brand color into a balanced 50–950 Tailwind scale with live contrast checks.
Open tool
Contrast Checker
Check text and UI contrast against WCAG AA/AAA and APCA standards, with 1-click fixes.
Open tool