Use following Matrices to transform RGB values into XYZ (linear source required)
BT.709
0.4123907992659600 | 0.3575843393838780 | 0.1804807884018340 |
0.2126390058715100 | 0.7151686787677560 | 0.0721923153607337 |
0.0193308187155918 | 0.1191947797946260 | 0.9505321522496610 |
BT.2020
0.6369580483012910 | 0.1446169035862080 | 0.1688809751641720 |
0.2627002120112670 | 0.6779980715188710 | 0.0593017164698620 |
0.0000000000000000 | 0.0280726930490874 | 1.0609850577107900 |
DCI-P3
0.4920158300037700 | 0.2696001179022440 | 0.1329709466808800 |
0.2315368611782450 | 0.7019776654813150 | 0.0664854733404400 |
0.0000000000000000 | 0.0457811520966075 | 0.9086348023193470 |
D-Gamut
0.6481719686338150 | 0.1940581498207550 | 0.1082258085971010 |
0.2830046623612430 | 0.8131960563917360 | -0.0962007187529791 |
-0.0182583653136286 | -0.0831677784946093 | 1.1904838945681200 |
S-Gamut3
0.7064827131923190 | 0.1288010497905580 | 0.1151721640687950 |
0.2709796708134920 | 0.7866064112209060 | -0.0575860820343976 |
-0.0096778453861962 | 0.0046000374925199 | 1.0941355586535500 |
S-Gamut3.Cine
0.5990839207583270 | 0.2489255161154240 | 0.1024464901779210 |
0.2150758201155870 | 0.8850685017437280 | -0.1001443218593160 |
-0.0320658495445058 | -0.0276583906794915 | 1.1487819909838800 |
ACES
0.9525523959381860 | 0.0000000000000000 | 0.0000936786316605 |
0.3439664497650750 | 0.7281660966134860 | -0.0721325463785608 |
0.0000000000000000 | 0.0000000000000000 | 1.0088251843515900 |
Use Matrices as shown:
To calculate x- and y-coordinate for representation in CIE 1931 system use:
x = X / (X+Y+Z)
y = Y / (X+Y+Z)