The process of converting colors from one color space to another is called color conversion.
All colors in a color space are fixed relative to the color space's white point.
1Under the RGB system every colour is represented by Three values - One each for Red, Green & Blue.
2) In any given hex colour - say #00ff00 - the first two digits are the Red value (0 to 255), the second two digits are the Green value (0 to 255) and the last two digits are the Blue value (0 to 255).
White = 0xffffff.
Black = 0x000000.
A "perfect" Blue = 0x0000ff.
A "prefect" Red = 0xff0000.