Skip to content

OKLCH to HSV / HSB Converter

Translate between OKLCH and OKLCH—the modern CSS Color Module 4 standard with uniform human perceptual lightness.

Source Format (From):
Target Output (To):
OKLCH Input:L: 0-1, C: 0-0.4, H: 0-360°
L
C
H°
Click to Pick Color
TerracottaPantone 7608 C (Terracotta)
#E07A5F
HSV / HSB OutputHue, Saturation, Value / Brightness
INSTANT RESULT
CSS Syntax
hsv(13°, 58%, 88%)
Raw Values (H: 0-360°, S: 0-100%, V: 0-100%)
13°, 58%, 88%

All 7 Color Space Formats for #E07A5F

Click any format card to copy its full CSS value directly to your clipboard.

Instant Values
HEX
Hexadecimal Color Code
#E07A5F
RGB
Red, Green, Blue Color Model
rgb(224, 122, 95)
CMYK
Cyan, Magenta, Yellow, Key/Black
cmyk(0%, 46%, 58%, 12%)
HSL
Hue, Saturation, Lightness
hsl(13°, 68%, 63%)
HSV / HSB
Hue, Saturation, Value / BrightnessTarget
hsv(13°, 58%, 88%)
CIE-LAB
CIE L*a*b* Perceptual Space
lab(62.2 37.1 32.3)
OKLCH
Oklab Cylindrical (CSS Color 4)
oklch(82.9% 0.072 40.0)

Developer Code Snippets

Production-ready snippets formatted for web, mobile, and game engines.

Ready to Paste
CSS VariableWeb
color: #E07A5F;
Copy Snippet
CSS Display P3Wide Gamut
color(display-p3 0.878 0.478 0.373)
Copy Snippet
Tailwind CSSUtility
bg-[#E07A5F]
Copy Snippet
SwiftUIiOS / macOS
Color(hex: "E07A5F")
Copy Snippet
Flutter / DartCross-Platform
Color(0xFFE07A5F)
Copy Snippet
Unity C#Game Engine
new Color(0.878f, 0.478f, 0.373f, 1.0f);
Copy Snippet
Conversion Purpose & Workflow

Why Convert from OKLCH to HSV / HSB?

Legacy color spaces like HSL and sRGB do not reflect human visual perception: pure yellow (hsl 60°, 100%, 50%) appears blindingly bright while pure blue (hsl 240°, 100%, 50%) appears nearly black at the same lightness value! OKLCH fixes this with mathematically uniform perceptual lightness, making accessible UI palettes and contrast math completely reliable in CSS and Tailwind v4.

The Mathematical Formula

How to Convert OKLCH to HSV / HSB Step-by-Step

  1. 1 Step 1: Linearize sRGB values to remove gamma encoding: c_lin = (c <= 0.04045) ? c / 12.92 : ((c + 0.055) / 1.055)^2.4.
  2. 2 Step 2: Transform linear sRGB to LMS cone coordinates via a 3x3 matrix.
  3. 3 Step 3: Take the cube root of LMS responses to match non-linear human visual reception.
  4. 4 Step 4: Multiply by the Oklab conversion matrix to produce L (Lightness), a (green-red), and b (blue-yellow).
  5. 5 Step 5: Convert rectangular (a, b) to polar cylindrical coordinates: Chroma C = sqrt(a² + b²), Hue H = atan2(b, a) in degrees.

OKLCH to HSV / HSB Frequently Asked Questions

Why is OKLCH better than HSL for UI design?

In OKLCH, lightness is perceptually uniform. If two colors have an OKLCH Lightness of 0.70, they have the exact same perceived brightness to the human eye, ensuring predictable WCAG contrast.

Is OKLCH supported in all modern browsers?

Yes! Chrome, Safari, Firefox, and Edge all support oklch() natively in CSS (95%+ global browser support). Tailwind CSS v4 uses OKLCH by default.

Can OKLCH represent Display P3 wide-gamut colors?

Yes. Unlike HEX and RGB which are locked to sRGB, OKLCH can describe colors across the entire visible spectrum including Apple Display P3 and Rec.2020.