Explanation:
The color temperature of a light source (a bulb or a star, for example) is defined by comparing its color within the electromagnetic spectrum with that of the light emitted by a black body ("a theoretical or ideal object that absorbs all the light and all the radiant energy that falls on it") heated to a certain temperature (expressed in Kelvin).
Then, according to this, a black body with a temperature of 800K will emit its light in red and one at 12200K will emit its light in blue. This means that as the body heats up it will change its color.
In the case of stars, such as Rigel and the Sun, their color varies according to their surface temperature, where the coldest stars are red, and the hottest blue colors.
So, if Rigel's spectrum peaks in the short-wavelength end of the visible spectrum (violet-blue) and Sun's spectrum peaks in the yellow-green region of the visible spectrum, this only means: