Color & Display

Opaque Hex Color, HSL, HSV, XYZ & Lab Converter

Inspect several coordinate representations of the same opaque sRGB color in one place.

How the calculation works

Decode the sRGB transfer curve before the RGB-to-XYZ matrix and Oklab transform. CIELAB uses the piecewise cube-root function relative to D65 white. HSL/HSV use the encoded RGB extrema; approximate K=1−max(R,G,B).

Worked example

Example inputs — Opaque sRGB hex, 3 or 6 digits: #000000. Expected results — Normalized hex: #000000 sRGB hex; RGB channels: 0, 0, 0 0–255; HSL: hue, saturation, lightness: 0, 0, 0 degrees, %, %; HSV: hue, saturation, value: 0, 0, 0 degrees, %, %; Approximate CMYK: 0, 0, 0, 100 %, %, %, %; CIE X: 0 relative; CIE Y: 0 relative; CIE Z: 0 relative; CIELAB L*: 0; CIELAB a*: 0; CIELAB b*: 0; Oklab L: 0; Oklab a: 0; Oklab b: 0.

Assumptions and limits

Mathematical color model with stated reference conventions; device calibration, viewing conditions and color-management profiles affect practical appearance. Only opaque 3/6-digit hex is accepted; this is not a general CSS parser. XYZ uses D65 white Y=1; CIELAB also uses D65, without D50 adaptation. HSL/HSV are based on encoded sRGB. CMYK is a simple black-extraction approximation, not an ink separation or printer profile. Hue is set to zero for neutral colors.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.