XYZ to HSV Converter

Enter CIE XYZ tristimulus values and instantly get the equivalent HSV color with hue, saturation, and value outputs plus a live preview swatch.

CIE XYZ Input

0.4124
0.2126
0.0193
hsv(0°, 100%, 100%)

HSV Output

Conversion Steps

  1. 1 XYZ input: X=0.4124, Y=0.2126, Z=0.0193
  2. 2 XYZ → Linear RGB (D65 matrix): Rl=1.0000, Gl=0.0000, Bl=0.0000
  3. 3 Linear RGB → sRGB (gamma encode): R=1.000, G=0.000, B=0.000
  4. 4 sRGB → HSV: H=0°, S=100%, V=100%
Copied!

Summary

Enter CIE XYZ tristimulus values and instantly get the equivalent HSV color with hue, saturation, and value outputs plus a live preview swatch.

How it works

  1. Enter X, Y, and Z values using the number inputs or sliders (typical normalized range 0–1; D65 reference white is X=0.9505, Y=1.0000, Z=1.0890).
  2. XYZ values are multiplied by the inverse sRGB D65 matrix to produce linear RGB channel values.
  3. Linear RGB is gamma-encoded with the sRGB transfer function (IEC 61966-2-1) to produce non-linear sRGB in the 0–1 range.
  4. sRGB values are clamped to 0–1 (out-of-gamut XYZ inputs are flagged) and converted to HSV via the standard max-min algorithm.
  5. Hue (0–360°), saturation (0–100%), and value (0–100%) are displayed alongside the hsv() string.
  6. A live color swatch previews the resulting color; copy buttons let you grab the hsv() string instantly.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu