Sunlight is white
PhysicsSunlight is all the colors of the rainbow mixed together, and our eyes see the mix as white. Seen from space, or high in the sky, the sun is white, and its visible light peaks in the green, not the yellow.1
A bright, light yellow named after sunshine, which is really white.
Sunshine yellow is a very light, vivid yellow with the faintest lean toward green. Its code, #FFFD37, has red at full strength, green at 99% and a little blue, 22%. That touch of blue lifts it, so it is a little lighter and softer than lemon or canary yellow. The code comes from the 2010 xkcd color survey: it is the average of the colors people there named sunshine yellow.
The name hides a small paradox: sunshine is not yellow. Sunlight is a mix of every color, and together they look white. Seen from space, or high overhead, the sun is white. It turns yellow, orange or red only when it is low in the sky and its light crosses so much air that the blue is scattered away. Screens agree: the white of sRGB, the color space behind web colors, is CIE D65, a standard model of average daylight. In web terms, daylight is #FFFFFF.
So the yellow sun is a habit. A science column for teachers points to contrast: a white sun would vanish on white paper, and yellow stands out while staying close to the light. The habit is not universal. In Japan the sun is usually pictured red, and the national flag shows a red sun on white. Even in the survey, people’s “sun yellow” came out deeper and more golden, #FFDF22, than their sunshine yellow.
Sunshine yellow is one of the lightest colors there is. White text on it reaches only 1.08:1, while black reaches 19.4:1, so never use it for text on white. Use it as a background, a highlight or a button on dark colors, with dark text, and pair it with sky blue and navy, charcoal, coral or violet.
| HEX | #FFFD37 | |
|---|---|---|
| RGB | rgb(255, 253, 55) | |
| HSL | hsl(59, 100%, 61%) | |
| HSV | 59°, 78%, 100% | |
| CMYK | 0, 1, 78, 0 | |
| OKLCH | oklch(96.5% 0.197 109.0) |

People’s sunny yellow in the xkcd survey sits almost on top of the code. Plochere’s 1948 sunshine sits lower, inside the outline: the same hue, but duller and a little darker. People’s sun yellow lies just outside the outline at the lower left, darker and more golden, and Maerz and Paul’s 1930 sunlight, a dull moderate yellow, is far below and to the left. The outline is an approximate range, not a measured one.
Tints with white
Shades with black
Tones with gray
Pairings that work in rooms, outfits and interfaces.
The sun and sky of a child’s drawing. Cheerful and simple.
A dark theme where the yellow glows. Clear and high-contrast.
The red sun pictured in Japan beside the yellow one drawn in much of the West. Bold and graphic.
Warm summer colors for beach, travel and holiday designs.
Near-opposites on the color wheel. Loud and playful.
Sunlight on a meadow. Fresh, natural and lively.
Pick a palette to see where its colors sit on the color wheel. The caret marks sunshine yellow. Tap a band to copy its code.
Lined up by hue around sunshine yellow. Hover a color to see how similar it is.The bar under each name shows how similar it is. Similarity comes from the distance between the two colors in OKLab, a model of how we see color.
Sunshine yellow stands for warmth, cheer and fine weather: the sun as people draw it. The catch is that sunlight is not yellow. It is white, and the sun looks yellow only through a lot of air, low in the sky. Drawing it yellow is a habit, and not everyone shares it: in Japan the sun is usually red. Research on color and emotion tests the word yellow, not this named color.
Sunlight is all the colors of the rainbow mixed together, and our eyes see the mix as white. Seen from space, or high in the sky, the sun is white, and its visible light peaks in the green, not the yellow.1
Air scatters short wavelengths of light more than long ones. When the sun is low, its light crosses so much air that blue and green are scattered away, leaving yellow, orange and red. A science column for teachers notes that the sun really looks white only when it is high in the sky.1, 2
The same column explains the yellow of drawings by contrast: a white sun would barely show on white paper, and yellow provides the contrast. The optics writer Stephen Wilk called the gap between the white sun and the yellow one “the yellow sun paradox”. These are expert explanations, not tested findings.2, 3
A Japanese cultural foundation writes that if you ask what color the sun is, most Japanese will answer red, and the Stanford Solar Center notes that a kindergartener in the USA colors the sun yellow while one in Japan might choose red. Japan’s flag is a red sun disc on white. No survey behind “most” is given.4, 1, 5
In a 2019 meta-analysis of 19 trials, bright light boxes (1,000 lux or more) worked better than dim light against seasonal affective disorder, though the trials were small and varied. They test brightness, not hue. Across 30 nations, people most often link the word yellow with joy, but no study has tested sunshine yellow itself.6, 7
Sunshine yellow is a new name for an old habit. Science showed long ago that sunlight is white, painters kept the sun yellow anyway, and screens took their white from daylight.
Isaac Newton reports to the Royal Society that white light is a mixture of rays of every color, after splitting sunlight with a prism. Sunlight is white because it holds all the colors.1
Japan adopts the Hinomaru, a red sun disc on white, as the flag of its merchant ships. It becomes the national flag by law in 1999.2
John William Strutt, later Lord Rayleigh, shows that particles much smaller than a light wave scatter short, blue waves far more than long ones, which is why the sky is blue.3 The same scattering thins the blue in direct sunlight, so the sun looks yellow, orange or red when it is low.4
In Arles, Van Gogh describes his painting The Sower to Émile Bernard: a sky of chrome yellow almost as bright as the sun itself, and the sun in chrome yellow mixed with a little white.5
Maerz and Paul’s A Dictionary of Color includes a color called sunlight. The 1955 ISCC-NBS dictionary files it as moderate yellow, centered on #C9AE5D, a dull yellow far from today’s sunshine.6
The Plochere color system names a color sunshine. The ISCC-NBS dictionary files it as light greenish yellow, centered on #EAE679.7
The CIE introduces its D series of daylight illuminants. D65, with a color temperature of about 6,500 K, is meant to represent average daylight, and it serves as a standard white.8
HP and Microsoft propose sRGB, which becomes the standard color space of the web, with D65 as its white point. On screen, #FFFFFF is daylight.9
In the xkcd color survey, the average color people call sunshine yellow is #FFFD37, today’s code. Their sunny yellow, #FFF917, is almost the same, while sun yellow, #FFDF22, is deeper and more golden.10
A very light, vivid yellow with a faint green lean. The usual code is #FFFD37 (RGB 255, 253, 55), the average color people named sunshine yellow in the 2010 xkcd color survey.
No. Sunlight is a mix of all colors and looks white, and from space the sun is white. It looks yellow, orange or red when it is low in the sky, because the air scatters away more of its blue light.
Mostly habit and contrast. A white sun would not show on white paper, and yellow is bright and close to how the sun looks through the air. Not everyone does it: in Japan the sun is usually drawn red.
They are nearly the same. Lemon (#FFF700) has no blue at all and is a hair deeper. Sunshine yellow (#FFFD37) adds a little blue, which makes it slightly lighter and softer.
Not quite. In the xkcd survey, people’s average sun yellow (#FFDF22) is deeper and more golden than their sunshine yellow (#FFFD37). Sunny yellow (#FFF917) lands almost on top of sunshine yellow.
Not on white: the contrast is only 1.08 to 1. Black text on sunshine yellow reaches about 19 to 1, so use it as a background, highlight or button color with dark text.
Sky blue and navy for a classic sunny look, charcoal or black for strong contrast, coral for summer designs, and violet as its near-opposite on the color wheel.