Paste a hex color code and get its CIE XYZ values instantly. HEX and XYZ describe the exact same color: base sixteen screen channels on one side, and the device independent CIE 1931 tristimulus values (D65, white at Y = 100) that every perceptual color space is built on, on the other. See the live preview and a table of common hex to XYZ conversions.
Questions
- Are HEX and XYZ the same color?
- Yes. HEX and XYZ are two notations of one color; the converter changes the notation, not the color. Converting back returns the same value, apart from rounding in spaces that use decimals.
- How do I convert HEX to XYZ by hand?
- Split the hex code into its red, green and blue pairs, read each pair as a number from 0 to 255, then apply the XYZ formula shown in How HEX to XYZ Works above. The worked example on this page follows every step with your own color.
- Where does the alpha channel go?
- A hex code with eight digits carries opacity in its last pair (FF is fully opaque). XYZ has a matching form with an extra alpha value; both are listed in the Formats section of this page.
- Is the HEX to XYZ converter free?
- Yes. It runs in your browser with no sign in and no limit; convert as many values as you like. The color itself is the link, so any conversion can be shared or bookmarked.