RGB to XYZ Converter

RGB to XYZ Converter

Convert RGB colors to CIE XYZ color space with scientific precision using standard sRGB to XYZ matrix transformation. Fundamental color science tool for color management, research, and as the bridge between device-dependent and device-independent color spaces.

rgb
xyz
cie-xyz
Share this tool:
Quick Presets
Common RGB colors for quick conversion
Input
Enter RGB values to convert to CIE XYZ color space.
How it works: Converts RGB to CIE XYZ color space using the standard sRGB matrix transformation. XYZ is a device-independent color space that serves as an intermediate step for many color conversions.

Complete Guide: RGB to XYZ Converter

Everything you need to know about using this tool effectively

What is RGB to XYZ Converter?

The RGB to XYZ Converter transforms RGB color values to the CIE XYZ device-independent color space. It applies the sRGB transfer function (linearization) and the standard RGB-to-XYZ transformation matrix using the D65 illuminant. The output includes X, Y, Z components. All processing happens in the browser.

This tool normalizes RGB to 0-1, applies the sRGB inverse companding function to linearize, then multiplies by the 3x3 RGB-to-XYZ matrix (D65). The result is X, Y, Z tristimulus values.

Key Features
Converts RGB to XYZ
Uses sRGB and D65 illuminant
Shows individual X, Y, Z components
Six decimal place precision
Copy values to clipboard
Runs in the browser with no uploads
Real-time conversion
Standard CIE formulas
Common Use Cases
When and why you might need this tool

Converting RGB to LAB

Use RGB to XYZ as an intermediate step to convert RGB to LAB.

ICC color management

Convert device RGB to XYZ for use in ICC profile color management workflows.

Cross-device color matching

Convert RGB values to the device-independent XYZ space for accurate color matching.

Color science calculations

Provide XYZ input for color appearance models and other color science computations.

How to Use This Tool
Step-by-step guide to get the best results
1

Enter RGB values

Type RGB values (0-255) or use the color picker.

2

View the XYZ values

The tool shows the X, Y, Z components.

3

Copy the result

Copy the XYZ values.

Pro Tips
1

XYZ is device-independent: it represents color the same way regardless of the display or printer.

2

The D65 white point is the standard for sRGB.

3

XYZ serves as a hub for converting between other color spaces (LAB, LUV, etc.).

4

Typical XYZ values for sRGB colors are in the range 0-1.

Frequently Asked Questions
What is XYZ?

CIE XYZ is a device-independent color space based on human cone responses. It serves as an intermediate for converting between other color spaces.

Is my data sent to a server?

No. All conversion happens in your browser. Nothing is transmitted.

What illuminant is used?

D65, the standard illuminant for sRGB.

Can I convert XYZ to LAB?

Yes. Use an XYZ to LAB converter as the next step.

Why use XYZ instead of RGB?

XYZ is device-independent and serves as a standard intermediate for color space conversions. RGB values depend on the specific display's gamut.