Convert HSV to OKLCH
Converting Hue, Saturation, Value (HSV) to Lightness, Chroma, Hue (perceptual) (OKLCH) is a precise, rule-based operation — both formats describe the same color with different numbers. Whether you are tuning a CSS custom property, matching a brand color across design tools, or preparing values for print, this page gives you an interactive converter, the exact HSV → OKLCH method, a worked example, a quick-reference table and the details that matter (rounding, gamut and print caveats).
From
To
—
—
—
Live preview
How to convert HSV to OKLCH
Take this real example — the color firebrick(#c2410c):
hsv(17.47, 93.81%, 76.08%) → oklch(0.553 0.174 38.4)
- Convert the HSV color to RGB using the HSV → RGB method.
- Keep the three RGB channels (0–255) — this is the shared numeric base of every on-screen format.
- Convert RGB to OKLCH with the RGB → OKLCH method to finish.
HSV → RGB → OKLCH (RGB is the numeric bridge)
HSV to OKLCH conversion table
| Color | HSV | OKLCH |
|---|---|---|
| White | hsv(0, 0%, 100%) | oklch(1 0 90) |
| Black | hsv(0, 0%, 0%) | oklch(0 0 0) |
| Red | hsv(0, 100%, 100%) | oklch(0.628 0.258 29.23) |
| Lime | hsv(120, 100%, 100%) | oklch(0.866 0.295 142.5) |
| Blue | hsv(240, 100%, 100%) | oklch(0.452 0.313 264.05) |
| VersatilBox accent | hsv(17.47, 93.81%, 76.08%) | oklch(0.553 0.174 38.4) |
| Tailwind blue-500 | hsv(217.22, 76.02%, 96.47%) | oklch(0.623 0.188 259.81) |
| Tailwind emerald-500 | hsv(160.12, 91.35%, 72.55%) | oklch(0.696 0.149 162.48) |
About these formats
HSV (Hue, Saturation, Value). HSV is like HSL but with brightness ("value") instead of lightness — the model behind classic color pickers and graphics software (also called HSB). An industry convention, not a CSS space.
OKLCH (Lightness, Chroma, Hue (perceptual)). OKLCH is the modern perceptual space from CSS Color 4: L for lightness, C for chroma (intensity) and H for hue, designed so that equal numeric steps look like equal steps to your eye.
Frequently asked questions
How do I convert HSV to OKLCH?
Convert the HSV color to RGB using the HSV → RGB method. Keep the three RGB channels (0–255) — this is the shared numeric base of every on-screen format. Convert RGB to OKLCH with the RGB → OKLCH method to finish. The converter above does it instantly, including the reverse direction.
What is HSV?
HSV — Hue, Saturation, Value — is like HSL but with brightness ("value") instead of lightness — the model behind classic color pickers and graphics software (also called HSB). An industry convention, not a CSS space.
What is OKLCH used for?
OKLCH (Lightness, Chroma, Hue (perceptual)) is the modern perceptual space from CSS Color 4: L for lightness, C for chroma (intensity) and H for hue, designed so that equal numeric steps look like equal steps to your eye.
Is the HSV → OKLCH conversion exact?
Yes, within display precision. OKLCH values are typically stored to 3 decimals, and on very saturated colors that can shift a channel by 1–3 units of 255 after a round trip — invisible in practice, and exactly how browsers and conversion tools round.
Why does the OKLCH value look different in other tools?
Small differences come from rounding (how many decimals are kept) and from out-of-gamut handling. This site follows the CSS Color 4 algorithms and shows OKLCH with 3 decimals, the same convention used by browsers and mainstream design tools.