In astronomy, the color index is a simple numerical expression that determines the color of an object, which in the case of a star gives its temperature. The smaller the color index, the more blue (or hotter) the object is. Conversely, the larger the color index, the more red (or cooler) the object is. This is a consequence of the logarithmic magnitude scale, in which brighter objects have smaller (more negative) magnitudes than dimmer ones. For comparison, the yellowish Sun has a B-V index of , whereas the bluish Rigel has a B-V of -0.03 (its B magnitude is 0.09 and its V magnitude is 0.12, B-V = -0.03). Traditionally, the color index uses Vega as a zero point.
To measure the index, one observes the magnitude of an object successively through two different filters, such as U and B, or B and V, where U is sensitive to ultraviolet rays, B is sensitive to blue light, and V is sensitive to visible (green-yellow) light (see also: UBV system). The set of passbands or filters is called a photometric system. The difference in magnitudes found with these filters is called the U-B or B-V color index respectively.
In principle, the temperature of a star can be calculated directly from the B-V index, and there are several formulae to make this connection. A good approximation can be obtained by considering stars as black bodies, using Ballesteros' formula (also implemented in the PyAstronomy package for Python):
Color indices of distant objects are usually affected by interstellar extinction, that is, they are redder than those of closer stars. The amount of reddening is characterized by color excess, defined as the difference between the observed color index and the normal color index (or intrinsic color index), the hypothetical true color index of the star, unaffected by extinction. For example, in the UBV photometric system we can write it for the B-V color:
The passbands most optical astronomers use are the UBVRI filters, where the U, B, and V filters are as mentioned above, the R filter passes red light, and the I filter passes infrared light. This system of filters is sometimes called the Johnson-Cousins filter system, named after the originators of the system (see references). These filters were specified as particular combinations of glass filters and photomultiplier tubes. M. S. Bessell specified a set of filter transmissions for a flat response detector, thus quantifying the calculation of the color indices. For precision, appropriate pairs of filters are chosen depending on the object's color temperature: B-V are for mid-range objects, U-V for hotter objects, and R-I for cool ones.