You are on page 1of 10

Received: 3 December 2020 Accepted: 14 January 2021 Published on: 23 February 2021

DOI: 10.1002/asna.202113868

ORIGINAL ARTICLE

Digital color codes of stars

Jan-Vincent Harre1,2 René Heller1,2

1
Institut für Astrophysik,
Georg-August-Universität Göttingen, Abstract
Göttingen, Germany Nowadays, publications in astrophysics are mainly published and read in digi-
2
Max-Planck-Institut für tized formats. Astrophysical publications in both research and in popular out-
Sonnensystemforschung, Göttingen,
reach often use colorful representations of stars to indicate various stellar types,
Germany
that is, different spectral types or effective temperatures. Computer-generated
Correspondence and computer-displayed imagery has become an integral part of stellar astro-
Jan-Vincent Harre and René Heller,
Institut für Astrophysik,
physics communication. There is, however, no astrophysically motivated stan-
Georg-August-Universität Göttingen, dard color palette for illustrative representations of stars, and some stars are
Friedrich-Hund-Platz 1, 37077 Göttingen, actually represented in misleading colors. We use precomputed PHOENIX and
Germany.
Email: harre@mps.mpg.de (J.-V. H.) and TLUSTY stellar model spectra and convolve them with the three standard
heller@mps.mpg.de (R. H.) color-matching functions for human color perception between 360 and 830 nm.
The color-matching functions represent the three sets of receptors in the eye
Funding information
Max-Planck-Gesellschaft, Grant/Award
that respond to red, green, and blue light. For a grid of main-sequence stars with
Number: Projekt DEAL; German effective temperatures between 2,300 and 55,000 K of different metallicities, we
Aerospace Agency (Deutsches Zentrum present the red–blue–green and hexadecimal color codes that can be used for
für Luft- und Raumfahrt), Grant/Award digitized color representations of stars as if seen from space. We find significant
Number: 50OO1501 deviations between the color codes of stars computed from stellar spectra and
from a black body radiator of the same effective temperature. We illustrate the
main sequence in the color wheel and demonstrate that there are no yellow,
green, cyan, or purple stars. Red dwarf stars (spectral types M0V–M9V) actually
look orange to the human eye. Old white dwarfs such as WD 1856 + 534, host to
a newly discovered transiting giant planet candidate, appear pale orange to the
human eye, not white. Our freely available software can be used to generate color
codes for any input spectrum such as those from planets, galaxies, quasars, etc.

KEYWORDS
standards, stars: atmospheres, stars: general, stars: imaging, techniques: spectroscopic

The data underlying this article are also available on Zenodo at https://doi.org/10.5281/zenodo.4090873.

This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the
original work is properly cited.
© 2021 The Authors. Astronomische Nachrichten published by Wiley-VCH GmbH.

578 www.an-journal.org Astron. Nachr. / AN. 2021;342:578–587.


HARRE and HELLER 579

1 I N T RO DU CT ION 15,000 K were provided courtesy of T. O. Husser in pri-


vate communication. The PHOENIX model grid embraced
Digitized representations of stars have become an inte- surface gravity values 0 ≤ log(g) ≤ 6 (g expressed in units
gral part of publications in astronomy and astrophysics. of cm s−2 ) and stellar metallicities [Fe/H] ∈ {0, −1, −2}.
Although realistic colors of stars are sometimes irrele- All spectra were provided on the same wavelength grid
vant for depictions of an astrophysical process, they can (500 Å≤𝜆 ≤ 5.5 μm) and with a typical resolution of
be helpful to support the message of a figure in a paper R = 𝜆/Δ𝜆 = 500,000 in the optical regime.
(Becker et al. 2017; Heller & Pudritz 2016; Hippke & These spectra were computed using version 16 of the
Angerhausen 2015; Kaltenegger et al. 2010; Kasting & PHOENIX software (Hauschildt & Baron 1999). Spherical
Harman 2013; Sidis & Sari 2010) or a slide in an elec- symmetry of the stars was assumed, and each atmosphere
tronic science talk.1 In some cases, although the effect was represented by 64 layers. The assumption of local
may be subtle, color is key, for example, for the Rossiter- thermal equilibrium (LTE) was justified by the maximum
McLaughlin effect (Bourrier et al. 2018; Sanchis-Ojeda effective temperatures of 12,000 K, and dust settling was
et al. 2012) or for the color-induced displacement of binary ignored because it is insignificant for T eff ≥ 2,300 K. For
stars (Pourbaix et al. 2004). In fact, the history of modern details, we refer the reader to Husser et al. (2013).
astronomy is deeply rooted in by-eye analyses of the appar- For OB stars with 16,000 K ≤ T eff ≤ 55,000 K, we used
ent colors of stars and their relation to the temperature TLUSTY models6 of the BSTAR2006 grid of Lanz &
(Hertzsprung 1911; Payne 1925; Russell 1914). Hubeny (2007) and the OSTAR2002 grid of Lanz &
Beyond the scientific value of colorful stellar represen- Hubeny (2003). These models take into account the effects
tations, the colors of stars play an important role in dig- of non-LTE in plane-parallel, hydrostatic atmospheric lay-
itized science dissemination activities to the public, such ers. Due to the very weak absorption lines of these hot
as press releases,2 educational websites,3 electronic books4 stars, the differences in the color codes are very small
(Fraknoi et al. 2019), electronic slides in public talks, etc. across different stellar metallicities. As a consequence, we
That said, no uniform scale for the digitized color codes restricted our analysis to solar metallicity.
of stars exists. The digital illustration of stellar colors is
often performed in a pragmatic fashion rather than in a
scientifically founded way, and color representations of 2.2 Color codes and matching functions
essentially the same types of stars differ greatly among
publications in the various outlets listed above. Moreover, To infer the digital color codes for the model spectra
some myths about the red color of so-called red dwarf as if they were perceived by the human eye, we used
stars, of a brownish look of brown dwarfs, and of the white color_system.py.7 This python module uses data
appeal of white dwarfs prevail. Here, we develop a repro- from color-matching functions (CMFs), which describe
ducible method to compute the colors of stars as they the perception of light by the cone cells in the human eye
appear to the human eye (from space), and we report the under standardized illumination, to convert a spectrum to
digital color codes of main-sequence stars. a color code. As the model stellar spectra have a high wave-
length resolution, we used the latest values of the 2-degree
XYZ CMFs,8 transformed from the 2006 International
2 M ET H ODS Commission on Illumination 2-degree long-medium-short
color space cone fundamentals (Stockman & Sharpe 2008),
2.1 Stellar model spectra which come with one data point per Å. We then degraded
the resolution of the synthetic stellar spectra to the same
As input spectra to our color calculations, we used pre- wavelength resolution.
computed model stellar spectra of the flux densities In Figure 1, we show the CMFs (blue, green, red lines)
as a function of wavelength. For effective temperatures together with two example spectra, one being a black body
2, 300 K ≤ T eff ≤ 12,000 K, we used spectra from the of 2,500 K (black line) and one being a PHOENIX spectrum
publicly available5 PHOENIX spectral library of Husser for T eff = 2,500 K, log(g) = 5, and [Fe/H] = 0. Both spectra
et al. (2013). Additional PHOENIX spectra with T eff up to are normalized to a value of one (see inset). The presence
of strong molecular absorption bands in the PHOENIX
1
http://exoplanet-talks.org spectrum suggests that the resulting color perception, and
2
www.eso.org/public/usa/news/eso1629
3
www.exocast.org 6
http://tlusty.oca.eu/Tlusty2002/tlusty-frames-OS02.html
4
https://openstax.org/details/books/astronomy 7
https://scipython.com/blog/converting-a-spectrum-to-a-colour
5
http://phoenix.astro.physik.uni-goettingen.de 8
http://cvrl.ucl.ac.uk
580 HARRE and HELLER

F I G U R E 1 Comparison of a black
body spectrum (labeled BB, black solid
line) and a PHOENIX spectrum of a
main-sequence star (labeled PHX, orange
line), both with an effective temperature
of 2,500 K. The color-matching functions
are shown as X, Y, and Z in red, green,
and blue, respectively. The inset shows
an extended coverage of the spectra from
0 to 60,000 Å

therefore also the digital color codes, differ substantially 2.4 Limb darkening
between a black body and a stellar spectrum of the same
effective temperature. For illustration purpose only, we generate a library of plots
of the apparent stellar surface that include limb darkening
as parameterized by the quadratic limb darkening law,
2.3 Spectral typing
I (𝜇)
= 1 − a (1 − 𝜇) − b(1 − 𝜇)2 , (2)
I (1)
The PHOENIX spectra are not formally linked to a given
stellar spectral type (SpT), although empirical relation- where 𝜇 = cos(𝛾), 𝛾 is the angle between the line of sight
ships can be used to relate PHOENIX spectra with SpT. To and the normal to the stellar surface, I is the specific inten-
simplify the choice of an appropriate color representation sity, and (a, b) are the limb-darkening coefficients. This
for a given SpT, one of our aims was to create a look-up model does not take into account the possible wavelength
table that is astrophysically motivated but particularly suit- dependence of limb darkening, that is, chromatic effects.
able from an astronomer’s perspective. We used limb-darkening coefficients that reproduce the
To this end, we matched spectral types of main- limb darkening as observed in the G filter of the Gaia mis-
sequence stars with the corresponding T eff and log(g) val- sion (table 2 in Claret 2019). We chose the Gaia G filter
ues from our grid of PHOENIX models—and also for the because its response curve matches reasonably well with
TLUSTY models for consistency. First, we used table 5 the response function of the human eye (Weiler 2018).
of Pecaut & Mamajek (2013) to match T eff from the syn- Given that the PHOENIX and TLUSTY model grids and
thetic models with observed spectral types of stars. These the limb-darkening tables have different step sizes in the
authors used a weighting scheme of a large sample of stan- model parameters, we used linear interpolation of the
dard main-sequence stars from the literature to infer a limb-darkening coefficients whenever necessary to repre-
T eff -SpT relation for T eff ≤ 34,000 K. Stellar surface gravi- sent stars on the model grid.
ties were not provided. As an alternative, we define three In technical terms, limb darkening was implemented
intervals of log(g) based on the T eff –log(g) relation derived into our computer code by first creating a two-dimensional
from a sample of detached eclipsing stellar binaries (Eker array with 1,001 × 1,001 entries, each containing a subar-
et al. 2018): ray with the respective linear RGB color triple values of
the star. Each linear RGB triple entry corresponded to a
Teff ≤ 3,648K ⇒ log (g) = 5.0 radial√distance from the stellar center. Using the relation
3,648K < Teff ≤ 6,152K ⇒ log (g) = 4.5 (1) 𝜇 = 1 − r 2 (Heller 2019), with 0 ≤ r ≤ 1 being the radial
6,152K < Teff ⇒ log (g) = 4.0 distance from the star disk in units of stellar radii, each
entry in the color array was multiplied with the corre-
For T eff > 34,000 K, we used table 7 of Eker et al. (2018) for sponding intensity of the limb darkening in Equation (2)
the SpT-to-T eff matching. law to obtain the radial limb-darkening profile.
HARRE and HELLER 581

T A B L E 1 Linear RGB and Hexadecimal TA B L E 2 Linear RGB and hexadecimal (Hex) color
(Hex) color codes of black bodies codes of stars with solar metallicity ([Fe/H] = 0) as seen
from space, computed using PHOENIX model spectra
T eff RGB Hex
2,300 1.0,0.409,0.078 #ff6813 T eff log(g) [Fe/H] RGB Hex

2,400 1.0,0.432,0.093 #ff6e17 2,300 3.0 0.0 1.0,0.615,0.292 #ff9c4a


2,500 1.0,0.455,0.109 #ff731b 2,300 3.5 0.0 1.0,0.571,0.25 #ff913f
2,600 1.0,0.476,0.126 #ff7920 2,300 4.0 0.0 1.0,0.539,0.211 #ff8935
2,700 1.0,0.497,0.144 #ff7e24 2,300 4.5 0.0 1.0,0.507,0.175 #ff812c
2,800 1.0,0.518,0.163 #ff8429 2,300 5.0 0.0 1.0,0.491,0.144 #ff7d24
2,900 1.0,0.537,0.182 #ff892e 2,300 5.5 0.0 1.0,0.435,0.098 #ff6e19
3,000 1.0,0.557,0.202 #ff8d33 2,300 6.0 0.0 1.0,0.393,0.076 #ff6413
3,100 1.0,0.575,0.223 #ff9238 2,400 3.0 0.0 1.0,0.66,0.313 #ffa84f
3,200 1.0,0.593,0.244 #ff973e
2,400 3.5 0.0 1.0,0.653,0.309 #ffa64e
3,300 1.0,0.611,0.266 #ff9b43
2,400 4.0 0.0 1.0,0.604,0.266 #ff9a43
3,400 1.0,0.627,0.289 #ff9f49
2,400 4.5 0.0 1.0,0.549,0.212 #ff8b36
3,500 1.0,0.644,0.311 #ffa44f
2,400 5.0 0.0 1.0,0.518,0.179 #ff842d
… … …
2,400 5.5 0.0 1.0,0.484,0.137 #ff7b23
Note: The full table is available at Table S1. (Please
see Supporting information section on https:// 2,400 6.0 0.0 1.0,0.434,0.098 #ff6e19
onlinelibrary.wiley.com/doi/10.1002/asna. … … … … …
202113868)
Note: The full table is available at Table S2. (Please see Supporting
information section on https://onlinelibrary.wiley.com/doi/10.
1002/asna.202113868)
3 R E S U LTS

3.1 Digital color codes about half a spectral class between M9.5 and O1 (all of
luminosity class V). To our knowledge, this is the first
In Table 1, we list the linear RGB and Hexadecimal (Hex) digital color code representation of the long-known astro-
color codes of black bodies with 2,300 ≤ T ≤ 12,000 K, the nomical observation that there are no yellow, green, cyan,
temperature range of which corresponds to the publicly or purple stars. At the lowest temperatures, the main
available PHOENIX models. Columns 2 and 3 refer to the sequence begins with orange stars of SpT M9.5 and then
colors of a black body in vacuum without any extinction or continues to produce brighter and brighter stars across
transmission through an additional medium between the the K class until it reaches the white point with stars of
radiator and the observer. SpT F9.5. Sun-like stars with SpT G2 are slightly yellow-
In Tables 2–4, we show the linear RGB and Hex color ish. Early-type stars of spectral classes A, B, and O tend
codes as computed from the PHOENIX spectra for 2, to have ever more blue colors. Interestingly, for spectral
300 ≤ T eff ≤ 12,000 K. The color variation of stars with types earlier than about B5, the colors of increasingly
T eff > 12,000 K is hardly notable to the human eye, which hotter stars converge toward a blueish tone of linear
is why we restricted Tables 2–4 to T eff ≤ 12,000 K. Table 2, RGB = (90,123,255).
for [Fe/H] = 0, contains color codes for 841 PHOENIX In Figure 2b, we illustrate the differences between the
spectra; Table 3 and its 846 entries refer to [Fe/H] = − 1; colors of main-sequence stars as depicted in panel (a) and
and Table 4 is a list of 848 PHOENIX spectra assuming black bodies of the same effective temperatures for the
[Fe/H] = − 2. Table 5 is a look-up table for the color same selection of spectral types. Pairs of model spectra
codes of main-sequence stars of a given spectral type and (filled circles and crosses) and black bodies (open circles)
embraces both the PHOENIX and the TLUSTY models of the same T eff are connected with a black line. Inter-
with effective temperatures up to 55,000 K. estingly, while there are significant deviations between
Figure 2 is a visual representation of these color the two models for both the most late-type stars and the
codes. Panel (a) shows the stellar main sequence in the most early-type stars, colors virtually agree for SpT K0.
color wheel. Color codes were first computed using the We also note two inflection points in the color differences,
PHOENIX and TLUSTY spectra, and then, a selection of one between M4.5 and M0 and a second one between K5
spectral types was marked in the color wheel in steps of and K0.
582 HARRE and HELLER

T A B L E 3 Linear RGB and Hexadecimal (Hex) color TA B L E 4 Linear RGB and hexadecimal (Hex) color
codes of stars with [Fe/H] = − 1 as seen from space, computed codes of stars with [Fe/H] = − 2 as seen from space, computed
using PHOENIX model spectra using PHOENIX model spectra

T eff log(g) [Fe/H] RGB Hex T eff log(g) [Fe/H] RGB Hex
2,300 3.0 −1.0 1.0,0.752,0.303 #ffbf4d 2,300 3.0 −2.0 1.0,0.525,0.082 #ff8514
2,300 3.5 −1.0 1.0,0.637,0.213 #ffa236 2,300 3.5 −2.0 1.0,0.48,0.067 #ff7a10
2,300 4.0 −1.0 1.0,0.559,0.151 #ff8e26 2,300 4.0 −2.0 1.0,0.443,0.057 #ff710e
2,300 4.5 −1.0 1.0,0.493,0.103 #ff7d1a 2,300 4.5 −2.0 1.0,0.422,0.054 #ff6b0d
2,300 5.0 −1.0 1.0,0.469,0.086 #ff7715 2,300 5.0 −2.0 1.0,0.41,0.052 #ff680d
2,300 5.5 −1.0 1.0,0.425,0.059 #ff6c0f 2,300 5.5 −2.0 1.0,0.394,0.051 #ff640d
2,300 6.0 −1.0 1.0,0.392,0.045 #ff640b 2,300 6.0 −2.0 1.0,0.382,0.055 #ff610d
2,400 3.0 −1.0 1.0,0.774,0.312 #ffc54f 2,400 3.0 −2.0 1.0,0.527,0.09 #ff8617
2,400 3.5 −1.0 1.0,0.671,0.232 #ffab3b 2,400 3.5 −2.0 1.0,0.506,0.082 #ff8115
2,400 4.0 −1.0 1.0,0.604,0.183 #ff992e 2,400 4.0 −2.0 1.0,0.468,0.07 #ff7711
2,400 4.5 −1.0 1.0,0.517,0.123 #ff831f 2,400 4.5 −2.0 1.0,0.437,0.064 #ff6f10
2,400 5.0 −1.0 1.0,0.468,0.09 #ff7717 2,400 5.0 −2.0 1.0,0.417,0.062 #ff6a0f
2,400 5.5 −1.0 1.0,0.426,0.063 #ff6c0f 2,400 5.5 −2.0 1.0,0.406,0.061 #ff670f
2,400 6.0 −1.0 1.0,0.406,0.052 #ff670d 2,400 6.0 −2.0 1.0,0.394,0.065 #ff6410
… … … … … … … … … …

Note: The full table is available at Table S3. (Please see Supporting Note: The full table is available at Table S4. (Please see Supporting
information section on https://onlinelibrary.wiley.com/doi/10.1002/ information section on https://onlinelibrary.wiley.com/doi/10.1002/
asna.202113868) asna.202113868)

3.2 Limb darkening derived from the black body approximation could, at least
partly, explain why the most early-type stars are called “red
The effect of limb darkening is illustrated in Figure 3 for a dwarfs.” The 5,200 K black body radiator (left) in the cen-
sun-like star. The left panel has no limb darkening, and the ter row shows almost no visible color difference to the
right panel includes the quadratic limb darkening law. Our PHOENIX star (SpT K1V, central panel). For T eff = 8,000 K
implementation of limb darkening comes after the calcula- in the bottom row, the black body disk looks lighter due to
tion of the linear RGB codes from the model spectra, which its slightly increased red values compared to the PHOENIX
means that the linear RGB colors codes given in Tables 2–4 model disk.
refer to the center of the stellar disk. The menagerie of model main-sequence stars in
For each of the 107 stars listed in the look-up Table 5, Figure 5 shows a summary of our astrophysical model.
we generated an illustration in portable document for- Colors are based on the PHOENIX models as if seen from
mat (PDF, version 1.4) using the python plotting package space, the stellar disk is modeled using quadratic limb
matplotlib that is similar to the one in the right panel of darkening, and stellar radii are scaled according to Eker
Figure 3. These electronic images are available Data S1. et al. (2018) for main-sequence stars of the respective spec-
tral types.
3.3 Black bodies and stellar spectra
4 DISCUSSION
The color differences between black bodies and stellar
spectra mentioned above are illustrated in more detail in Our color codes carry information about the chromaticity
Figure 4. The left column shows stellar disks with limb (hue and saturation) of stars but not about their brightness
darkening and colors based on the black body approxima- (see Figure 5). If we were to include stellar brightness as
tion, and the right column refers to PHOENIX spectra as well, we would need to invoke the stellar luminosity and
if observed from space. distance from Earth to compute an apparent brightness.
In the upper row, which features a 2,700 K star (corre- The stellar luminosity could, in principle, be obtained
sponding to SpT M6.5), the black body disk appears redder from stellar evolution models or mass luminosity scaling
than the PHOENIX star. We suppose that this reddish color relations for stars of a given mass. The model spectra,
HARRE and HELLER 583

(a) (b)

F I G U R E 2 (a) Main-sequence stars in the color wheel. Colors are derived from synthetic stellar spectra. (b) Comparison of colors
derived from synthetic spectra (filled circles) with colors calculated from black bodies of the corresponding effective temperatures (open
circles). Spectral types are indicated along the curves

F I G U R E 3 Comparison of the same star with and without


limb darkening. For the computation of the color, we chose the
PHOENIX spectrum of a sun-like star with T eff = 5,700 K,
log(g) = 4.5, and [Fe/H] = 0

however, do not make any assumptions of the stellar


mass, and so, we would also have to assume a given age or
evolutionary phase to match the resulting effective tem-
perature and log(g) between stellar evolution models and
the synthetic spectra.
Our illustrations of the stellar disks with limb dark-
ening consider an achromatic radial intensity profile.
Chromatic effects have been observed in the sun, for
example, by Neckel & Labs (1987). Strictly speaking, due
to the wavelength dependence of stellar limb darken-
ing, we should also expect a chromatic variation along F I G U R E 4 Color representations of three stars with T eff = 2,
the apparent distance from the stellar disk center. That 700 K (top), T eff = 5,200 K (center), and T eff = 8,000 K (bottom).
Colors in the left column are computed from a black body and
said, the color codes that we calculate are derived from
colors in the right column from the PHOENIX spectra. For the
the model spectra directly and are independent from our
PHOENIX models, we assumed solar metallicity ([Fe/H] = 0) and
graphical illustrations.
log(g) = 5.0, log(g) = 4.5, and log(g) = 4.0. The corresponding color
The CMFs that we used came with a resolution of 1 Å, codes are listed in Table 2. Quadratic limb darkening is modeled on
thereby defining a limit to the accuracy of our calculations. top of the stellar disk. Perception of the colors (and their
We tested the effect of the resolution of the CMFs by differences) depends on the monitor or print, as well as on the
decreasing their resolution artificially by a factor of two. individual vision abilities of the viewer
584 HARRE and HELLER

F I G U R E 5 Selection of main-sequence stars with proper limb darkening, radii to scale, and colors as computed in this report. All stars
are of luminosity class V. From a human perception point of view, the plausibility of such an illustration is limited because the hottest stars
(spectral type O) can be millions or billions times more luminous than the coolest stars of (spectral type M). We do not take into account the
effect of brightness

We found that the black body RGB color codes of some codes from the spectrum, we found that the Hex color
stars changed on the permille level, certainly below the code remains unaffected, and the RGB color code was only
level of perception for the human eye. For the PHOENIX affected at the seventh decimal place. In summary, stel-
spectra, the situation was more complex. For T eff > 3,000 lar rotation does not have a visible effect on the perceived
K, changes in the RGB color codes were <1% and were colors of stars.
therefore unlikely to be visible to most people. For even CMFs are usually derived from a series of experi-
lower temperatures and down to the coolest M dwarfs ments with test persons. Different test series derive dif-
with T eff = 2,300 K, variations between our nominal ferent CMFs, although results are very similar (North &
results and the degraded resolution were always below Fairchild 1993). Thus, we expect that choosing a differ-
1% for main-sequence stars. Only for the coolest stars ent set of CMFs would result in virtually the same digital
with extremely low surface gravities of log(g) = 0, vari- color codes of main-sequence stars. Irrespective of the
ations in the G color channel were more significant, color codes that we provide, the perception of the colors
up to 2.5% for 2,600 K ≤ T eff ≤ 3,000 K and up to 8% for and of the apparent color differences depends heavily on
2,300 K ≤ T eff ≤ 2,600 K. The R and B channels varied on the monitor or printer used to display the star images. The
a percent level for these cool and low-g giants. Briefly, the color vision abilities of the viewer also affect the hue, that
resolution of the CMFs is sufficient for the main-sequence is, the color appearance of any light source.
stars to produce digital color codes exact to one permille Another potentially relevant effect on color percep-
for T eff > 3,000 K and exact to one% for T eff < 3,000 K. tion is the Purkinje effect (Graff 2013), which makes reds
We also examined the impact of stellar rotation on appear darker and blues brighter at low brightness. Our
the apparent colors. Stellar rotation leads to rotational color codes are determined as if the stars were observed
broadening of the spectral absorption lines, which may under standard illumination, which is admittedly a some-
or may not have a visible effect. We tested this by what artificial experimental setup for a hypothetical by-eye
applying rotational broadening to a synthetic ATLAS observation from space. In a real space-based observation
spectrum (Kurucz 1993; Sbordone et al. 2004) with of a star with the unaided human eye, the Purkinje effect
T eff = 50,000 K and log(g) = 5.0 with a corresponding lin- could lead to a slight difference in the perceived colors
ear limb-darkening coefficient of a = 0.1680 (Claret 2019). compared to our color codes.
We assumed a rotational velocity of vsin(i) = 200 km s−1 In this paper, we restrict ourselves to the apparent
to maximize the effect of a rapidly rotating early-type star colors of stars as if seen from space. For an observer on
(Abt et al. 2002). After applying the rotational broadening Earth, the colors would look slightly different due to sev-
using the freely available rotBroad()9 python function eral effects in the Earth’s atmosphere, such as scattering
from the PyAstronomy module and extracting the color of the light in the atmosphere, scintillation, Rayleigh scat-
tering, and the presence of carbon black dust and other
9
https://pyastronomy.readthedocs.io/ small particles (Schlosser et al. 1991, Chapter 19). That
HARRE and HELLER 585

TA B L E 5 Linear RGB and hexadecimal (Hex) color codes TA B L E 5 Continued


of solar metallicity main-sequence stars for spectral types (SpT)
SpT T eff log(g) RGB Hex
M9.5V to O1V

SpT T eff log(g) RGB Hex F9V 6,100 4.5 1.0,0.96,0.998 #fff4fe
F8V 6,200 4.0 0.955,0.931,1.0 #f3edff
M9.5V 2,300 5.0 1.0,0.491,0.144 #ff7d24
F6V 6,300 4.0 0.922,0.908,1.0 #ebe7ff
M9V 2,400 5.0 1.0,0.518,0.179 #ff842d
F6V 6,400 4.0 0.896,0.891,1.0 #e4e3ff
M8V 2,500 5.0 1.0,0.542,0.202 #ff8a33
F5V 6,500 4.0 0.869,0.871,1.0 #dddeff
M7.5V 2,600 5.0 1.0,0.607,0.255 #ff9a41
F4V 6,600 4.0 0.844,0.855,1.0 #d7d9ff
M6.5V 2,700 5.0 1.0,0.648,0.286 #ffa548
F3V 6,700 4.0 0.823,0.84,1.0 #d1d6ff
M6V 2,800 5.0 1.0,0.649,0.285 #ffa548
F2V 6,800 4.0 0.802,0.826,1.0 #ccd2ff
M6V 2,900 5.0 1.0,0.644,0.285 #ffa448
F2V 6,900 4.0 0.782,0.812,1.0 #c7cfff
M5.5V 3,000 5.0 1.0,0.641,0.289 #ffa349
F1V 7,000 4.0 0.763,0.799,1.0 #c2cbff
M4.5V 3,100 5.0 1.0,0.638,0.293 #ffa24a
F0V 7,200 4.0 0.725,0.773,1.0 #b8c5ff
M4V 3,200 5.0 1.0,0.638,0.3 #ffa24c
A9V 7,400 4.0 0.692,0.75,1.0 #b0bfff
M3.5V 3,300 5.0 1.0,0.638,0.308 #ffa24e
A8V 7,600 4.0 0.674,0.738,1.0 #abbcff
M3V 3,400 5.0 1.0,0.638,0.315 #ffa250
A7V 7,800 4.0 0.636,0.712,1.0 #a2b5ff
M2.5V 3,500 5.0 1.0,0.637,0.322 #ffa251
M2V 3,600 5.0 1.0,0.635,0.327 #ffa153 A6V 8,000 4.0 0.606,0.69,1.0 #9ab0ff

M1V 3,700 4.5 1.0,0.637,0.34 #ffa256 A4V 8,200 4.0 0.579,0.67,1.0 #93aaff

M0.5V 3,800 4.5 1.0,0.635,0.346 #ffa158 A4V 8,400 4.0 0.556,0.652,1.0 #8da6ff

M0V 3,900 4.5 1.0,0.636,0.354 #ffa25a A3V 8,600 4.0 0.546,0.645,1.0 #8ba4ff

K8V 4,000 4.5 1.0,0.641,0.369 #ffa35e A2V 8,800 4.0 0.531,0.634,1.0 #87a1ff

K7V 4,100 4.5 1.0,0.65,0.389 #ffa563 A2V 9,000 4.0 0.519,0.624,1.0 #849fff

K6.5V 4,200 4.5 1.0,0.662,0.411 #ffa868 A1V 9,200 4.0 0.508,0.616,1.0 #819dff

K5.5V 4,300 4.5 1.0,0.677,0.439 #ffac6f A1V 9,400 4.0 0.498,0.608,1.0 #7f9bff

K5V 4,400 4.5 1.0,0.696,0.47 #ffb177 A0V 9,600 4.0 0.49,0.601,1.0 #7d99ff

K4.5V 4,500 4.5 1.0,0.717,0.501 #ffb67f A0V 9,800 4.0 0.483,0.595,1.0 #7b97ff

K4V 4,600 4.5 1.0,0.739,0.533 #ffbc87 A0V 10,000 4.0 0.477,0.59,1.0 #7996ff

K3.5V 4,700 4.5 1.0,0.761,0.565 #ffc18f B9.5V 10,200 4.0 0.472,0.586,1.0 #7895ff

K3V 4,800 4.5 1.0,0.781,0.595 #ffc797 B9.5V 10,400 4.0 0.467,0.582,1.0 #7794ff

K3V 4,900 4.5 1.0,0.802,0.626 #ffcc9f B9V 10,600 4.0 0.463,0.578,1.0 #7693ff

K2.5V 5,000 4.5 1.0,0.821,0.657 #ffd1a7 B9V 10,800 4.0 0.459,0.575,1.0 #7592ff

K1.5V 5,100 4.5 1.0,0.84,0.691 #ffd6b0 B9V 11,000 4.0 0.456,0.572,1.0 #7491ff

K1V 5,200 4.5 1.0,0.857,0.722 #ffdab8 B9V 11,200 4.0 0.453,0.57,1.0 #7391ff
K0V 5,300 4.5 1.0,0.872,0.753 #ffdec0 B9V 11,400 4.0 0.451,0.567,1.0 #7290ff
G9V 5,400 4.5 1.0,0.886,0.783 #ffe1c7 B9V 11,600 4.0 0.45,0.566,1.0 #7290ff
G8V 5,500 4.5 1.0,0.898,0.813 #ffe5cf B8V 11,800 4.0 0.448,0.564,1.0 #728fff
G6V 5,600 4.5 1.0,0.91,0.845 #ffe8d7 B8V 12,000 4.0 0.446,0.562,1.0 #718fff
G4V 5,700 4.5 1.0,0.922,0.878 #ffebdf B8V 12,500 4.0 0.44,0.557,1.0 #708eff
G2V 5,800 4.5 1.0,0.931,0.905 #ffede6 B8V 13,000 4.0 0.436,0.554,1.0 #6f8dff
G1V 5,900 4.5 1.0,0.94,0.931 #ffefed B7V 13,500 4.0 0.432,0.55,1.0 #6e8cff
F9.5V 6,000 4.5 1.0,0.951,0.967 #fff2f6 B7V 14,000 4.0 0.429,0.547,1.0 #6d8bff
586 HARRE and HELLER

TA B L E 5 Continued the maximum value in the wavelength range of the model


SpT T eff log(g) RGB Hex spectra. A different normalization would result in similar
colors as the absorption of light in the Earth’s atmosphere
B6V 14,500 4.0 0.425,0.544,1.0 #6c8aff only has a small impact (∼0.1%) on the RGB color code. As
B6V 15,000 4.0 0.421,0.541,1.0 #6b89ff a result, we found that the effects from transmission on the
B5V 16,000 4.0 0.414,0.536,1.0 #6988ff stellar RGB color codes are less than about 1%. The other
atmospheric effects are probably more significant.
B3V 17,000 4.0 0.408,0.532,1.0 #6887ff
The digital color codes that we computed for black
B2.5V 18,000 4.0 0.403,0.527,1.0 #6686ff
bodies can safely be used as representative for white
B2.5V 19,000 4.0 0.398,0.524,1.0 #6585ff dwarfs of spectral type DC. Spectra of DC white dwarfs
B2V 20,000 4.0 0.394,0.52,1.0 #6484ff are very close to black body radiators with essentially no
B2V 21,000 4.0 0.39,0.517,1.0 #6383ff
significant absorption lines (Greenstein 1958; Wegner &
Yackovich 1983). This has some remarkable implications
B2V 22,000 4.0 0.387,0.514,1.0 #6283ff
for DC white dwarfs with cooling ages of billions of years,
B1.5V 23,000 4.0 0.384,0.512,1.0 #6182ff at which point their effective temperatures drop to below
B1.5V 24,000 4.0 0.381,0.509,1.0 #6181ff 5,000 K. The look of these white dwarfs is a light orange.
B1.5V 25,000 4.0 0.379,0.507,1.0 #6081ff
Their color is similar to the star of SpT K2 in Figure 5.
The stellar remnant of the recently discovered transiting
B1V 26,000 4.0 0.376,0.505,1.0 #5f80ff
exoplanet candidate WD 1856+534 b is a topical example
B1V 27,000 4.0 0.373,0.503,1.0 #5f80ff (Vanderburg et al. 2020). With T eff = 4,710 ± 60 K, this DC
B1V 27,500 4.0 0.371,0.501,1.0 #5e7fff white dwarf would really have a pale orange look to the
B0.5V 28,000 4.0 0.371,0.5,1.0 #5e7fff human eye.
B0.5V 29,000 4.0 0.368,0.498,1.0 #5d7fff
B0.5V 30,000 4.0 0.366,0.496,1.0 #5d7eff 5 CO NC LUSIONS
O9.5V 32,500 4.0 0.361,0.491,1.0 #5c7dff
O8V 35,000 4.0 0.357,0.487,1.0 #5b7cff We use standard CMFs representing the color perception
of the human eye to determine the colors of stars from syn-
O6V 37,500 4.0 0.359,0.487,1.0 #5b7cff
thetic spectra. We find that colors derived from realistic
O5V 40,000 4.0 0.358,0.486,1.0 #5b7bff stellar spectra differ substantially from colors based on a
O4V 42,500 4.0 0.357,0.485,1.0 #5a7bff black body approximation.
O4V 45,000 4.0 0.357,0.485,1.0 #5a7bff In particular, the coolest (T eff = 2,300 K) and thus most
late-type (SpT M9.5V) main-sequence stars look orange
O3V 47,500 4.0 0.357,0.485,1.0 #5b7bff
to the human eye. The digital linear RGB color code of
O2V 50,000 4.0 0.358,0.486,1.0 #5b7bff
a solar metallicity M9.5V dwarf reads (1.0, 0.491, 0.144)
O2V 52,500 4.0 0.359,0.487,1.0 #5b7cff (Table 5). We suppose that part of the explanation for why
O1V 55,000 4.0 0.361,0.489,1.0 #5c7cff these stars are often called red dwarfs is in the fact that a
black body spectrum yields a much redder color, namely,
said, we performed a small experiment of simulating the RGB = (1.0, 0.409, 0.078) (Table 1). The colors of stars of
transmission of stellar light through the Earth’s atmo- SpT K1V to K0V (with T eff = 5,200 and 5,300 K, respec-
sphere using data from the HITRAN10 database (Gordon tively) are very similar to those of a black body with the
et al. 2017). Every molecule and isotopolog listed in the same effective temperature. Early-type stars of SpT F, A,
database, except for the CO2 isotopologs 18 C13 C17 O and B, and O look bluer than their black body counterparts
13 C17 O , was used in the generation of the absorption spec- because synthetic spectra yield lower red values in the
2
trum. The resulting transmission spectrum was binned to resulting RGB color codes.
the same wavelength grid as the CMFs with a fixed wave- We find that the transmission of star light through the
length step size of 1 Å. The transmission spectrum was nor- Earth’s atmosphere has a negligible effect on color percep-
malized to a maximum value of one and then multiplied tion, with color differences on the level of a few permille
with the respective PHOENIX spectrum. The transmission in the corresponding RGB color codes.
spectrum for the Earth’s atmosphere was normalized to Our ad-hoc parameterization of stellar limb darken-
ing with the quadratic limb-darkening law yields realistic,
10
plastic illustrations of main-sequence stars with correct
https://hitran.org
colors, achromatic limb darkening, and physical stellar
HARRE and HELLER 587

radii to scale. To our knowledge, this is the first digital Kaltenegger, L., Selsis, F., Fridlund, M., et al. 2010, Astrobiology,
representation of main-sequence stars with consistent and 10(1), 89.
correct colors based on astrophysical modeling. Our com- Kasting, J. F., & Harman, C. E. 2013, Nature, 504(7479), 221.
Kurucz, R. L. 1993, in: IAU Colloq. 138: Peculiar versus Normal
puter code, Spec2Col.py, is freely available and can be
Phenomena in A-type and Related Stars, eds. M. M. Dworetsky,
used to compute digital colors codes for any type of input
F. Castelli, & R. Faraggiana, Vol. 44, 87 p. Astronomical Society
spectrum. Images of 107 stars with spectral types rang- of the Pacific Conference Series, A New Opacity-Sampling Model
ing from M9.5V to O1V as per Table 5, including limb Atmosphere Program for Arbitrary Abundances; Astronomical
darkening, are available as Data S1. Society of the Pacific, San Francisco.
Lanz, T., & Hubeny, I. 2003, ApJS, 146(2), 417.
ACKNOWLEDGMENTS Lanz, T., & Hubeny, I. 2007, ApJS, 169(1), 83.
The authors appreciate the comments on the manuscript Neckel, H., & Labs, D. 1987, Sol. Phys., 110(1), 139.
North, A. D., & Fairchild, M. D. 1993, Color Res. Appl., 18(3), 163
from an anonymous referee. The authors also thank Chris-
Retrieved from https://onlinelibrary.wiley.com/doi/abs/10.1002/
tian Hill for providing them with the color_system.py col.5080180306.
code, Tim-Oliver Husser for help in accessing the Payne, C. H. 1925. Stellar Atmospheres; A Contribution to the Obser-
PHOENIX files, and Felix Mackebrandt as well as Ernest vational Study of High Temperature in the Reversing Layers of
T. Wright for comments on a manuscript draft. This work Stars (Unpublished doctoral dissertation). Radcliffe College.
made use of NASA’s ADS Bibliographic Services. RH is Pecaut, M. J., & Mamajek, E. E. 2013, ApJS, 208(1), 9.
supported by the German Aerospace Agency (Deutsches Pourbaix, D., Ivezi¢, Ž., Knapp, G. R., Gunn, J. E., & Lupton, R. H.
2004, A&A, 423, 755.
Zentrum für Luft- und Raumfahrt) under PLATO Data
Russell, H. N. 1914, Popul. Astron., 22, 275.
Center grant 50OO1501. Open Access funding enabled
Sanchis-Ojeda, R., Fabrycky, D. C., Winn, J. N., et al. 2012, Nature,
and organized by Projekt DEAL. WOA Institution: 487(7408), 449.
Max-Planck-Gesellschaft. Blended DEAL: Projekt DEAL. Sbordone, L., Bonifacio, P., Castelli, F., & Kurucz, R. L. 2004, Memor.
Della Soc. Astron. Ital. Suppl., 5, 93.
CONFLICT OF INTEREST Schlosser, W., Schmidt-Kaler, T., & Milone, E. F. 1991, Challenges
The authors declare no potential conflict of interests. of Astronomy. Hands-on Experiments for the Sky and Laboratory,
Springer-Verlag, New York.
Sidis, O., & Sari, R. 2010, ApJ, 720(1), 904.
REFERENCES
Stockman, A., & Sharpe, L. 2008, ISS/CIE Expert Symposium ’06
Abt, H. A., Levato, H., & Grosso, M. 2002, ApJ, 573(1), 359. “75 Years of the CIE Standard Colorimetric Observer”, 13–20.
Becker, J. C., Vanderburg, A., Adams, F. C., Khain, T., & Bryan, M. Retrieved from http://www.cvrl.org/people/Stockman/pubs/
2017, AJ, 154(6), 230. 2006%20Physiological%20CMFs%20SS.pdf
Bourrier, V., Lovis, C., Beust, H., et al. 2018, Nature, 553(7689), 477. Vanderburg, A., Rappaport, S. A., Xu, S., et al. 2020, Nature,
Claret, A. 2019, RNAAS, 3(1), 17. 585(7825), 363. https://doi.org/10.1038/s41586-020-2713-y.
Eker, Z., Bak𝚤s, V., Bilir, S., et al. 2018, MNRAS, 479(4), 5491. Wegner, G., & Yackovich, F. H. 1983, ApJ, 275, 240.
Fraknoi, A., Morrison, D., & Wolff, S. 2019, June. Update on the Non- Weiler, M. 2018, A&A, 617, A138.
profit Project to Produce and Disseminate a Free, Open-source
Astro 101 Textbook and Resource Hub. American Astronomical
Society Meeting Abstracts #234 Vol. 234, p. 224.02. AU THOR BIOGRAPHY
Gordon, I. E., Rothman, L. S., Hill, C., et al. 2017, J. Quant. Spec.
Radiat. Transf., 203, 3.
Jan-Vincent Harre is currently working on his mas-
Graff, K. 2013. Grundriss der Astrophysik. Wiesbaden:
ter’s thesis on the topic of transit photometry at the
Vieweg+Teubner Verlag. https://doi.org/10.1007/978-3-663-
15952-0. Max Planck Institute for Solar System Research and the
Greenstein, J. L. 1958, in: Astrophysik I: Sternoberflächen- Georg-August University Göttingen.
Doppelsterne / Astrophysics I: Stellar-Surfaces-Binaries, ed.
S. Flügge, Springer Berlin Heidelberg (Berlin, Heidelberg), 161. SUPPORTING INFORMATION
https://doi.org/10.1007/978-3-642-45906-1_5.
Additional supporting information may be found online
Hauschildt, P. H., & Baron, E. 1999, J Comp Appl Math, 109(1), 41.
Heller, R. 2019, A&A, 623, A137.
in the Supporting Information section at the end of this
Heller, R., & Pudritz, R. E. 2016, Astrobiology, 16(4), 259. article.
Hertzsprung, E. 1911. Ueber die Verwendung photographischer
effektiver Wellenlaengen zur Bestimmung von Farbenaequiva-
lenten. Publikationen des Astrophysikalischen Observatoriums zu
How to cite this article: Harre J-V, Heller R.
Potsdam, 63(63). Digital color codes of stars. Astron. Nachr.
Hippke, M., & Angerhausen, D. 2015, ApJ, 810(1), 29. 2021;342:578–587. https://doi.org/10.1002/asna.
Husser, T.-O., Wende-von Berg, S., Dreizler, S., Homeier, D., Reiners, 202113868
A., Barman, T., & Hauschildt, P. H. 2013, A&A, 553, A6.

You might also like