XYZ to HWB Converter
Enter CIE XYZ values and instantly see the equivalent HWB (Hue, Whiteness, Blackness) color with a live swatch.
CIE XYZ Input
Quick Examples
HWB Result
Swatch preview
Hue
—
degrees
Whiteness
—
percent
Blackness
—
percent
CSS Value
Intermediate sRGB
R: —
G: —
B: —
Enter XYZ values and click Convert.
Summary
Enter CIE XYZ values and instantly see the equivalent HWB (Hue, Whiteness, Blackness) color with a live swatch.
How it works
- Enter the X, Y, and Z channel values (each in the range 0–100 or 0–1, normalized to D65 illuminant).
- The tool converts XYZ to linear sRGB using the standard CIE matrix.
- Linear sRGB values are gamma-corrected to produce standard sRGB (0–255).
- sRGB is then converted to HSL to extract the hue angle.
- Whiteness and Blackness are derived from the min and max of the sRGB channels.
- A live color swatch updates in real time to show the resulting color.
Use cases
- Verify color conversions when working with ICC profiles or color-managed pipelines.
- Translate spectrophotometer XYZ measurements into design-friendly HWB values.
- Debug rendering differences between device-independent and sRGB color spaces.
- Learn how CIE XYZ relates to perceptual color descriptors like hue and whiteness.
- Cross-check output from color science libraries against a known reference.
- Generate HWB CSS values from measured color data for web projects.
Frequently Asked Questions
Related tools
Last updated: 2026-05-28 ·
Reviewed by Nham Vu