<p>The colors that we see in rainbows has to do with a few things.  First, its the variability of the index of refraction of water as a function of wavelength.  Since the index of refraction is different at different wavelengths, as light propagates through the water, the different colors split up.  This happens over a wide range of wavelengths outside of the visible range as seen below (data from <a href="https://en.wikipedia.org/wiki/Optical_properties_of_water_and_ice" rel="nofollow noreferrer">here</a>, I edited the plot because excel did something strange stretching out the x-scale)</p>

<p><a href="https://i.sstatic.net/OHVf6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OHVf6.png" alt="enter image description here"></a></p>

<p>You can see that in the visible range ($\sim 0.4\mu\text{m}-0.7\mu\text{m}$, dashed red lines), the slope of the index is not very large compared to other parts of the spectrum, so for stars of different colors, you might see a larger spread in the colors in the rainbow, allowing you do distinguish between more or less wavelengths of light depending on what part of the spectrum you are in (if you could perceive this light, I'll discuss this later).</p>

<p>Second, the rainbow that we see is dependent on the sensitivity of our eyes at certain wavelengths.  There are more colors in the rainbow than we can perceive beyond red and violent (hence the names infrared and ultraviolet).  In within the visible spectrum, the rods and cones in our eyes can only distinguish between so many wavelengths.  Also, the concept of "different" colors outside of our visible range doesn't have much meaning either, since we don't know how they would be distinguished.</p>

<p>Finally, for different stars, the colors that you would see would really depend on what light is coming from the stars and where they fall on this curve.  Our visible range is fixed, so if we confine ourselves to that, the colors won't change much, but the relative brightness between them will.  And as the stars light changes color range, some colors will appear brighter than the would from the sun.  Others may be to faint to perceive.  If we had a wider range of sensitivity, it would be more colorful than we could possibly imagine in some cases.</p>

CC BY-SA 3.0
2015-12-08T16:50:14.893Z
Do you have any idea of what a rainbow would look like from a planet with an exotic atmosphere having droplets of other volatiles than water? For example a Venusian rainbow as seen from high enough altitude to discern it.
LocalFluff
CC BY-SA 3.0
2015-12-08T16:54:43.443Z
@LocalFluff Not offhand, but the question considered replacing our sun, so I made the assumption that we were on earth still.  Your question would be something that I would be very interested in myself.  In fact, at vastly different wavelengths, maybe other compounds in our own atmosphere would start to reflect light in different ways, but I stuck with water since thats what we were talking about originally.
tmwilson26
CC BY-SA 3.0
2015-12-08T21:59:21.000Z
Yes, @LocalFluff, please ask this follow-up question separately, I'd be interested in the answer.
neontapir
CC BY-SA 3.0
2015-12-09T09:55:15.047Z
Good answer, but you might want to mention which wavelengths corresponds to "visible light".
Stig Hemmer
CC BY-SA 3.0
2015-12-09T15:01:34.047Z
Good call, I will change that and add some indicators on the plot.
tmwilson26
CC BY-SA 3.0
2015-12-08T16:36:32.373Z
2015-12-09T15:01:18.283Z
2015-12-09T15:01:18.283Z
tmwilson26
<p>Just for completeness, here's another angle:</p>

<p>Yes, as Joseph von Fraunhofer and many other people have demonstrated.</p>

<p>There's a whole scientific discipline that, putting things somewhat simplistically, involves <em>making rainbows</em> out of the starlight from non-Sol stars and seeing what they look like.  It is optical stellar spectroscopy.  So yes, there already are such rainbows, and people do know how they differ from the ones made by light from Sol.</p>

<p>Get into that in detail, of course, and one learns that "Sol is a yellow star" and "There are seven colours." are (gross) simplifications.  You've already seen from other answers here that there is a wealth of complexities, including the effect of the local star upon weather and the existence of liquid water rain, questions about what atmosphere one has and what time of day it is, and how much atmosphere (and indeed what purity of water) one is looking through.  The study of rainbows is actually quite complex.</p>

<p>Given that, it's quite difficult to answer such questions, because Sol is <em>not really</em> yellow, that largely being an artefact of looking at a star <em>that emits all colours</em> through a certain atmosphere in a certain way; and there are only "seven colours" if (a) one adopts certain cultural and linguistic biases and (b) one ignores the rest of the electromagnetic spectrum, which astronomers most definitely <em>do not</em> (radio and x-ray stellar spectroscopy <em>also</em> being scientific disciplines).</p>

<p>Sticking to visible light for the sake of simplicity, therefore:  Here is a set of "rainbows" made from other stars <a href="http://www.noao.edu/image_gallery/html/im0649.html" rel="nofollow noreferrer">by the Kitt Peak National Observatory 0.9m Telescope on the 30th of May, 2000</a>:</p>

<p><img src="https://apod.nasa.gov/apod/image/0105/obafgkm_noao_big.jpg" alt="Image from NOAO/AURA/NSF"></p>

<p>The codes down the right hand side are astronomical stellar catalogue numbers of the individual stars whose light was used to make each one.  This should give you the beginnings of an idea of what rainbows made by different stars would look like.  But it's quite a complex thing.  Just look at what a <em>solar</em> rainbow <em>really</em> looks like.  Here's what a solar rainbow looks like when viewed in great detail (<a href="http://www.noao.edu/image_gallery/html/im0600.html" rel="nofollow noreferrer">by the McMath-Pierce Solar Observatory on the 30th of August, 2000</a>):</p>

<p><img src="https://apod.nasa.gov/apod/image/0008/solarspectrum_noao.jpg" alt="Image from FTS/NSO/KPNO/AURA/NSF"></p>

<p>It's not yellow, and there are a lot more than seven colours.  &#9786;</p>

CC BY-SA 3.0
2015-12-08T21:40:16.270Z
With all due respect, these aren't really rainbows. You can create spectra like these for all blackbodies.
HDE 226868
CC BY-SA 3.0
2015-12-08T19:35:35.967Z
2015-12-08T19:35:35.967Z
2017-03-10T09:42:47.453Z
JdeBP
<p>For most stars (probably all stars) out there the answer is yes.  Stars are blackbody emitters, which means that the light they emit is based on their surface temperature.  A blackbody emitter emits all frequencies of light lower than a certain cutoff.  Any star with a higher surface temperature than our own Sun would have a higher frequency (bluer) peak emission.  However, they also emit more light at every frequency below that than a cooler star would.  So hotter stars will emit more red light, more blue light, more green light, more infrared light, more radio light, etc.  </p>

<p>So our only worry are stars that are cooler.  It turns out that it's not until you reach an effective surface temperature of around 2500K that you really start to have a huge drop-off in the blue and green part of the spectrum.  There aren't any stars that I know of that are this cool.  The lower end of the temperature spectrum tends to be around 3500K for very red stars.  All the colours of the rainbow would be fainter than they would with our star, but they should still be detectable.</p>

<p>The different compositions of stars result in certain black lines (absence of light at that frequency) in the rainbow if you look closely enough.  However, this happens even with our own star, and we can't see it until we use a spectrometer - the lines simply aren't wide enough and the rainbow is too compressed for us to notice with the naked eye.</p>

<p>Of course this is all assuming you could hold everything else on Earth constant and switch out stars like you would a light bulb.  The biggest factor in creating rainbows are the composition of the atmosphere, the size of raindrops, and the ability to actually create rain.  All of these would begin to change once our star is replaced.  Sometimes very rapidly, as in the case of an O class star (or a star that goes supernova from being shaken too hard during transport to our solar system).</p>

CC BY-SA 3.0
2015-12-08T21:58:12.817Z
Not to mention that life would evolve different types of eyes for an environment with a different spectrum
Hagen von Eitzen
CC BY-SA 3.0
2015-12-09T23:11:02.587Z
@HagenvonEitzen That's a great point.  I've always wished we could see a much broader spectrum.  Like from infrared through ultraviolet.  I know that some animals can see into each spectrum, but I don't know of any that can see all of those wavelengths.  I think it would be neat.
MassDefect
CC BY-SA 3.0
2015-12-08T19:39:46.020Z
2015-12-08T19:39:46.020Z
MassDefect
<p>A proxy would be Moonbows, Lunar rainbows. I created them as a child by simply spraying a mist of water from a garden hose during a full Moon. It was much fainter and bluer in the night than on many of the long exposure professional photos <a href="https://www.google.se/search?q=lunar+rainbow&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwjo3su61MzJAhWDDSwKHSwVAsYQ_AUIBygB&amp;biw=1299&amp;bih=761" rel="nofollow noreferrer">one can find</a> of it.</p>

<p>The Moon reflects only parts of the Sun's spectrum and it generates a different kind of rainbow. I bet that this is true for different stars too. There will still be some kind of bow, for sure, as long as you can see the star or whatever reflects its light brightly enough.</p>

<p>The image below is said to be natural as seen through the water spray of Victoria Falls. (I hope it is not caused by the background city lights! That they look bright only because of the long exposure needed to capture the colors out clearly). Some moonbows and starbows can be caused by atmospheric ice crystals or dust storms.</p>

<p><a href="https://i.sstatic.net/6TtUa.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6TtUa.jpg" alt="enter image description here"></a></p>

CC BY-SA 3.0
2015-12-08T19:25:53.043Z
The blue tint of a moonbow is an artifact of the human vision system: as the level of ambient light gets lower, the [relative sensitivity to blue light increases](https://en.wikipedia.org/wiki/Purkinje_effect).  The objectively-measured spectrum is virtually identical to that of a solar rainbow.
Mark
CC BY-SA 3.0
2015-12-08T22:05:44.733Z
Rain bows need the observer between the light source and the (seeming) center of the circle, so the city lights couldn't cause this bow.
Paŭlo Ebermann
CC BY-SA 3.0
2015-12-08T16:30:21.067Z
2015-12-08T16:36:47.627Z
2015-12-08T16:36:47.627Z
LocalFluff
<p>Yes, of course.  The passage of light through raindrops (or hosepipe spray, waterfalls etc) would be the same.  And your shadow would still point to the rainbow.</p>

CC BY-SA 3.0
2015-12-11T14:53:01.393Z
Assume a red star. Where does the blue color in the rainbow come from?
Gerald
CC BY-SA 3.0
2015-12-10T00:49:05.250Z
2015-12-10T00:49:05.250Z
Rerevisionist
<p>Rainbows would lack most blue, and some green for red stars.
For a blue star, the blue part of the rainbow would be more intense.</p>

<p>For more complex colors, the rainbow may show some gaps. A rainbow is essentially a spectrum of that star light portion, which is visible to our eyes, and to which the atmosphere is transparent.</p>

<p>Stars vary in brightness. A blue giant would be large and glaring, a red dwarf faint.</p>

<p>Colors in the rainbow would be blurred, hence closer to white, for large stars, and sharper, more distinct, for small stars, according to the angular size of the respective light source.</p>

<p>... This all assumes, that there is still rain. With small, red stars, it would get too cold for rain. With large blue stars, Earth would heat up too much.
To adjust for these effects, the distance to the star would need to be modified.
And of course, the length of a year, and the orbital velocity may change.
This could then cause different tides, changes in volcanism, etc.</p>

<p>Exchanging the star could cause various other effects, too, other polar lights, effects to the ionosphere, the ozone layer, atmospheric erosion, more...</p>

CC BY-SA 3.0
2015-12-08T16:32:35.460Z
Wouldn't the question of whether or not there is rain be a function of orbital distance? All stars have a "Habitable Zone" - though for some, it would be so close that the planet would be tidally locked.
Donald.McLean
CC BY-SA 3.0
2015-12-08T17:04:52.130Z
Yes. Then we would need to do more than exchanging the star. Tidal locking would take some time, possibly accompanied by inundations, earth quakes, or more vulcanism, due to tides and tidal heating.
Gerald
CC BY-SA 3.0
2015-12-10T09:56:47.593Z
wait a minute, I thought stars are red or blue depending on their relative expansion speed to earth. replacing the sun would leave no relative speed so it makes no sense to speak of blue or red within one system does it ?
v.oddou
CC BY-SA 3.0
2015-12-10T13:22:37.167Z
@v.oddou Check out https://en.wikipedia.org/wiki/Stellar_classification, particularly the section on [Harvard spectral classification](https://en.wikipedia.org/wiki/Stellar_classification#Harvard_spectral_classification). You are confusing it with [Doppler shift](https://en.wikipedia.org/wiki/Doppler_effect#Astronomy).
user
CC BY-SA 3.0
2015-12-08T16:01:49.503Z
2015-12-08T17:27:32.133Z
2015-12-08T17:27:32.133Z
Gerald
<p>Rainbow is a property of light splitting due to the water molecule present in the clouds and is related to the light emitted by our Sun. Our sun is a yellow star. Now if we replace sun by a blue giant star or red giant star, or any other star of different color, are we still going to have rainbows? If yes is it still going to compose of seven colors? What kind of possible change will occurs, if any? </p>

CC BY-SA 3.0
2015-12-08T18:48:15.897Z
What are you planning to do with our current star? I'm kind of partial to it!
corsiKa
CC BY-SA 3.0
2015-12-08T22:01:43.017Z
Note that our perception of a rainbow is based on the physiology of the eye, which adapted to the visible light on this planet. Had this planet another sun with a different spectrum, and evolution blessed humans evolving there with three different colour receptors, then you would certainly perceive any rainbow there just as colourful.
PlasmaHH
<star><the-sun><light>
Are we still going to have rainbows if Sun is replaced by another star?
Kushal Bhuyan
# Are we still going to have rainbows if Sun is replaced by another star?

(Asked by: username_0 on 2015-12-08)

Rainbow is a property of light splitting due to the water molecule present in the clouds and is related to the light emitted by our Sun. Our sun is a yellow star. Now if we replace sun by a blue giant star or red giant star, or any other star of different color, are we still going to have rainbows? If yes is it still going to compose of seven colors? What kind of possible change will occurs, if any?

**Tags:** star, the-sun, light

> **Comments:**
> **username_1**: What are you planning to do with our current star? I'm kind of partial to it!  
> **username_2**: Note that our perception of a rainbow is based on the physiology of the eye, which adapted to the visible light on this planet. Had this planet another sun with a different spectrum, and evolution blessed humans evolving there with three different colour receptors, then you would certainly perceive any rainbow there just as colourful.  

---

## 6 answers

### Answer by username_14 on 2015-12-08. Score: 17 | Accepted answer

Rainbows would lack most blue, and some green for red stars.
For a blue star, the blue part of the rainbow would be more intense.

For more complex colors, the rainbow may show some gaps. A rainbow is essentially a spectrum of that star light portion, which is visible to our eyes, and to which the atmosphere is transparent.

Stars vary in brightness. A blue giant would be large and glaring, a red dwarf faint.

Colors in the rainbow would be blurred, hence closer to white, for large stars, and sharper, more distinct, for small stars, according to the angular size of the respective light source.

... This all assumes, that there is still rain. With small, red stars, it would get too cold for rain. With large blue stars, Earth would heat up too much.
To adjust for these effects, the distance to the star would need to be modified.
And of course, the length of a year, and the orbital velocity may change.
This could then cause different tides, changes in volcanism, etc.

Exchanging the star could cause various other effects, too, other polar lights, effects to the ionosphere, the ozone layer, atmospheric erosion, more...

> **Comments:**
> **username_15**: Wouldn't the question of whether or not there is rain be a function of orbital distance? All stars have a "Habitable Zone" - though for some, it would be so close that the planet would be tidally locked.  
> **username_14**: Yes. Then we would need to do more than exchanging the star. Tidal locking would take some time, possibly accompanied by inundations, earth quakes, or more vulcanism, due to tides and tidal heating.  
> **username_16**: wait a minute, I thought stars are red or blue depending on their relative expansion speed to earth. replacing the sun would leave no relative speed so it makes no sense to speak of blue or red within one system does it ?  
> **username_17**: @username_16 Check out https://en.wikipedia.org/wiki/Stellar_classification, particularly the section on [Harvard spectral classification](https://en.wikipedia.org/wiki/Stellar_classification#Harvard_spectral_classification). You are confusing it with [Doppler shift](https://en.wikipedia.org/wiki/Doppler_effect#Astronomy).  

---

### Answer by username_3 on 2015-12-08. Score: 12

The colors that we see in rainbows has to do with a few things. First, its the variability of the index of refraction of water as a function of wavelength. Since the index of refraction is different at different wavelengths, as light propagates through the water, the different colors split up. This happens over a wide range of wavelengths outside of the visible range as seen below (data from [here](https://en.wikipedia.org/wiki/Optical_properties_of_water_and_ice), I edited the plot because excel did something strange stretching out the x-scale)

[![enter image description here](https://i.sstatic.net/OHVf6.png)](https://i.sstatic.net/OHVf6.png)

You can see that in the visible range ($\sim 0.4\mu\text{m}-0.7\mu\text{m}$, dashed red lines), the slope of the index is not very large compared to other parts of the spectrum, so for stars of different colors, you might see a larger spread in the colors in the rainbow, allowing you do distinguish between more or less wavelengths of light depending on what part of the spectrum you are in (if you could perceive this light, I'll discuss this later).

Second, the rainbow that we see is dependent on the sensitivity of our eyes at certain wavelengths. There are more colors in the rainbow than we can perceive beyond red and violent (hence the names infrared and ultraviolet). In within the visible spectrum, the rods and cones in our eyes can only distinguish between so many wavelengths. Also, the concept of "different" colors outside of our visible range doesn't have much meaning either, since we don't know how they would be distinguished.

Finally, for different stars, the colors that you would see would really depend on what light is coming from the stars and where they fall on this curve. Our visible range is fixed, so if we confine ourselves to that, the colors won't change much, but the relative brightness between them will. And as the stars light changes color range, some colors will appear brighter than the would from the sun. Others may be to faint to perceive. If we had a wider range of sensitivity, it would be more colorful than we could possibly imagine in some cases.

> **Comments:**
> **username_4**: Do you have any idea of what a rainbow would look like from a planet with an exotic atmosphere having droplets of other volatiles than water? For example a Venusian rainbow as seen from high enough altitude to discern it.  
> **username_3**: @username_4 Not offhand, but the question considered replacing our sun, so I made the assumption that we were on earth still.  Your question would be something that I would be very interested in myself.  In fact, at vastly different wavelengths, maybe other compounds in our own atmosphere would start to reflect light in different ways, but I stuck with water since thats what we were talking about originally.  
> **username_5**: Yes, @username_4, please ask this follow-up question separately, I'd be interested in the answer.  
> **username_6**: Good answer, but you might want to mention which wavelengths corresponds to "visible light".  
> **username_3**: Good call, I will change that and add some indicators on the plot.  

---

### Answer by username_7 on 2015-12-08. Score: 9

Just for completeness, here's another angle:

Yes, as Joseph von Fraunhofer and many other people have demonstrated.

There's a whole scientific discipline that, putting things somewhat simplistically, involves *making rainbows* out of the starlight from non-Sol stars and seeing what they look like. It is optical stellar spectroscopy. So yes, there already are such rainbows, and people do know how they differ from the ones made by light from Sol.

Get into that in detail, of course, and one learns that "Sol is a yellow star" and "There are seven colours." are (gross) simplifications. You've already seen from other answers here that there is a wealth of complexities, including the effect of the local star upon weather and the existence of liquid water rain, questions about what atmosphere one has and what time of day it is, and how much atmosphere (and indeed what purity of water) one is looking through. The study of rainbows is actually quite complex.

Given that, it's quite difficult to answer such questions, because Sol is *not really* yellow, that largely being an artefact of looking at a star *that emits all colours* through a certain atmosphere in a certain way; and there are only "seven colours" if (a) one adopts certain cultural and linguistic biases and (b) one ignores the rest of the electromagnetic spectrum, which astronomers most definitely *do not* (radio and x-ray stellar spectroscopy *also* being scientific disciplines).

Sticking to visible light for the sake of simplicity, therefore: Here is a set of "rainbows" made from other stars [by the Kitt Peak National Observatory 0.9m Telescope on the 30th of May, 2000](http://www.noao.edu/image_gallery/html/im0649.html):

![Image from NOAO/AURA/NSF](https://apod.nasa.gov/apod/image/0105/obafgkm_noao_big.jpg)

The codes down the right hand side are astronomical stellar catalogue numbers of the individual stars whose light was used to make each one. This should give you the beginnings of an idea of what rainbows made by different stars would look like. But it's quite a complex thing. Just look at what a *solar* rainbow *really* looks like. Here's what a solar rainbow looks like when viewed in great detail ([by the McMath-Pierce Solar Observatory on the 30th of August, 2000](http://www.noao.edu/image_gallery/html/im0600.html)):

![Image from FTS/NSO/KPNO/AURA/NSF](https://apod.nasa.gov/apod/image/0008/solarspectrum_noao.jpg)

It's not yellow, and there are a lot more than seven colours. ☺

> **Comments:**
> **username_8**: With all due respect, these aren't really rainbows. You can create spectra like these for all blackbodies.  

---

### Answer by username_9 on 2015-12-08. Score: 4

For most stars (probably all stars) out there the answer is yes. Stars are blackbody emitters, which means that the light they emit is based on their surface temperature. A blackbody emitter emits all frequencies of light lower than a certain cutoff. Any star with a higher surface temperature than our own Sun would have a higher frequency (bluer) peak emission. However, they also emit more light at every frequency below that than a cooler star would. So hotter stars will emit more red light, more blue light, more green light, more infrared light, more radio light, etc.

So our only worry are stars that are cooler. It turns out that it's not until you reach an effective surface temperature of around 2500K that you really start to have a huge drop-off in the blue and green part of the spectrum. There aren't any stars that I know of that are this cool. The lower end of the temperature spectrum tends to be around 3500K for very red stars. All the colours of the rainbow would be fainter than they would with our star, but they should still be detectable.

The different compositions of stars result in certain black lines (absence of light at that frequency) in the rainbow if you look closely enough. However, this happens even with our own star, and we can't see it until we use a spectrometer - the lines simply aren't wide enough and the rainbow is too compressed for us to notice with the naked eye.

Of course this is all assuming you could hold everything else on Earth constant and switch out stars like you would a light bulb. The biggest factor in creating rainbows are the composition of the atmosphere, the size of raindrops, and the ability to actually create rain. All of these would begin to change once our star is replaced. Sometimes very rapidly, as in the case of an O class star (or a star that goes supernova from being shaken too hard during transport to our solar system).

> **Comments:**
> **username_10**: Not to mention that life would evolve different types of eyes for an environment with a different spectrum  
> **username_9**: @username_10 That's a great point.  I've always wished we could see a much broader spectrum.  Like from infrared through ultraviolet.  I know that some animals can see into each spectrum, but I don't know of any that can see all of those wavelengths.  I think it would be neat.  

---

### Answer by username_4 on 2015-12-08. Score: 4

A proxy would be Moonbows, Lunar rainbows. I created them as a child by simply spraying a mist of water from a garden hose during a full Moon. It was much fainter and bluer in the night than on many of the long exposure professional photos [one can find](https://www.google.se/search?q=lunar+rainbow&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjo3su61MzJAhWDDSwKHSwVAsYQ_AUIBygB&biw=1299&bih=761) of it.

The Moon reflects only parts of the Sun's spectrum and it generates a different kind of rainbow. I bet that this is true for different stars too. There will still be some kind of bow, for sure, as long as you can see the star or whatever reflects its light brightly enough.

The image below is said to be natural as seen through the water spray of Victoria Falls. (I hope it is not caused by the background city lights! That they look bright only because of the long exposure needed to capture the colors out clearly). Some moonbows and starbows can be caused by atmospheric ice crystals or dust storms.

[![enter image description here](https://i.sstatic.net/6TtUa.jpg)](https://i.sstatic.net/6TtUa.jpg)

> **Comments:**
> **username_11**: The blue tint of a moonbow is an artifact of the human vision system: as the level of ambient light gets lower, the [relative sensitivity to blue light increases](https://en.wikipedia.org/wiki/Purkinje_effect).  The objectively-measured spectrum is virtually identical to that of a solar rainbow.  
> **username_12**: Rain bows need the observer between the light source and the (seeming) center of the circle, so the city lights couldn't cause this bow.  

---

### Answer by username_13 on 2015-12-10. Score: 0

Yes, of course. The passage of light through raindrops (or hosepipe spray, waterfalls etc) would be the same. And your shadow would still point to the rainbow.

> **Comments:**
> **username_14**: Assume a red star. Where does the blue color in the rainbow come from?  

---

