RGB → CIE XYZ

RGB to XYZ Converter

Convert device-dependent RGB values into CIE XYZ tristimulus coordinates using the sRGB D65 matrix. Useful for color science workflows, ICC profiles, and bridging perceptual color spaces.

RGB Input

Red (R)
Green (G)
Blue (B)

Preview

RGB

rgb(64, 120, 210)

CIE XYZ

Tristimulus Values

X

20.459

Y

19.174

Z

63.583

CSS xyz() string

xyz(20.459 19.174 63.583)

CIE 1960 UCS

Chromaticity (u, v)

u

0.164060

v

0.230633

Values follow the CIE 1960 UCS definition (u = 4X / (X + 15Y + 3Z), v = 6Y / (X + 15Y + 3Z)).

Conversion overview

Matrix

We use the standard sRGB to CIE XYZ matrix with D65 white point. Each channel is gamma-linearized before multiplying the transformation matrix. All numeric output is clamped to three decimals to keep the values readable.

Use cases

XYZ values are device-independent and perfect for converting to LAB/OKLAB, calculating Delta E, or deriving chromaticity coordinates for lighting calculations.