By the way, the RGB values of sRGB / Adobe RGB have been corrected so that images look natural on the screen.
Fig. 2 shows the tone correction curve, where
R, G, B
are the original values proportional (linear) to the brightness, and
R', G', B' are the corrected values.
This curve is sometimes called the transfer function.
The values of an RGB mode image are these
R', G', B' values after correction.
The tone correction can be expressed by the following equations:
For sRGB,
| R' = |
 |
12.92 R |
(R ≤ 0.0031308)
|
1.055
R1/2.4
-
0.055
|
(R > 0.0031308)
|
|
(1)
|
For Adobe RGB,
| R' = |
 |
32 R |
(R ≤ 0.00174)
|
R1/2.2
|
(R > 0.00174)
|
|
(2)
|
Table 1. The white point and primary colors of some color spaces.
Table 2. Transformation matrix from RGB to XYZ.
The inverse matrix is also given.