Palette maker

Sun Color: Palette, Hex Codes and RGB Values

The sun is really white, but the sun color designers use is a warm golden yellow: (RGB 253, 184, 19). Add orange , gold , light yellow and red orange , and you have the whole range from noon glare to evening light.

Fresh ideas, made simple

A short line of body text to test how readable these colors are.

Get started

Text contrast

-

    On this page
    1. True color
    2. Codes
    3. Sky changes
    4. Close colors
    5. Palettes
    6. Web and UI
    7. Contrast
    8. Branding
    9. Print
    10. Art and flags
    11. FAQ

    Below you will find every code in HEX, RGB, HSL and CMYK, the reason the sun changes color across the day, and practical advice for screens, print and interiors. All contrast ratios are calculated from the hex values, not guessed.

    What Color Is the Sun, Really?

    Seen from space, without Earth’s atmosphere in the way, the sun appears white to human vision. Its spectrum peaks in the green part of the spectrum, but the full mix of wavelengths reaching your eye reads as white, which is why nobody has ever seen a green sun.

    An astronaut on the Moon looks at the sun. What color do they see?

    With no atmosphere to scatter blue light, the sun shows its true white color.

    Astronomers still call it a G2V star, commonly called a yellow dwarf. That label describes stellar class and temperature, not the color you would see. So designers really work with two suns: the physical white one and the warm one we perceive and paint. The palette on this page covers the warm one. For the white end of the scale, a cool near-white such as ice white makes a clean partner.

    Sun Color Codes: HEX, RGB, HSL and CMYK

    The strip above shows the five core colors. Here are the same values in the formats you will need most often.

    Color HEX RGB HSL CMYK
    Sun Yellow 253, 184, 19 42°, 98%, 53% 0, 27, 92, 1
    Orange 255, 140, 0 33°, 100%, 50% 0, 45, 100, 0
    Gold 255, 215, 0 51°, 100%, 50% 0, 16, 100, 0
    Light Yellow 255, 244, 163 53°, 100%, 82% 0, 4, 36, 0
    Red Orange 255, 69, 0 16°, 100%, 50% 0, 73, 100, 0

    Sun is not part of the web colors list, so it cannot be used by name in HTML and CSS. Three of our five do have names, though: is gold, is darkorange and is orangered. CMYK values here come from the standard formula, and are only approximations, so treat them as a starting point for print.

    Two panels compare Sun Yellow #FDB813 as screen RGB values and as print CMYK ink values, with a duller print swatch
    Sun Yellow is light on screen and ink in print, so the same code never matches exactly.

    Why the Sun Looks Yellow, Orange or Red

    Rayleigh scattering in the atmosphere removes blue wavelengths from the direct solar beam, shifting its apparent color toward yellow-white. The longer the light travels through air, the more it loses. When the sun is high, its light crosses the thinnest layer of atmosphere, so it looks white or only slightly yellow.

    That gives a handy scale you can map straight onto the palette:

    • Midday: nearly white with a warm tint, close to Light Yellow
    • Late morning and early afternoon: Gold and Sun Yellow
    • Golden hour: Orange
    • Sunset and sunrise: Red Orange , then deeper reds

    Once the disc drops below the horizon, the sky takes over with purples and blues. The dusk colors page picks up exactly where Red Orange leaves off.

    Sun Yellow Compared With Gold, Amber and Lemon

    Sun Yellow has a hue of 42 degrees. Gold () sits at 51 degrees, so it is slightly greener and more lemony. Amber () lands at 45 degrees, almost between the two. Pure yellow is at 60 degrees and looks cold and electric next to any of them.

    In practice, Sun Yellow feels like warm light, while Gold feels like a material or a prize. If your design is about daylight, warmth or friendliness, start with . If it is about value, awards or celebration, start with . Orange is where the color stops being “yellow with warmth” and becomes its own signal.

    Quick rule for picking

    Hue below 45 degrees reads as sunlight, hue above 50 degrees reads as lemon or gold, and anything near 60 degrees looks like a highlighter.

    Sun Color Combinations That Actually Work

    Sun colors are warm, so the strongest partners are cool or dark. The RGB inverse of Sun Yellow is a deep blue, , and that contrast is why yellow and blue feel so alive together. If you want to blend between them, the orange to blue gradient page has ready CSS.

    Midday Glare

    Clean, bright landing pages and weather widgets with a near-black text color.

    Golden Hour

    Warm gradients, hero banners and posters that need a late-day glow.

    Sun and Sky

    Friendly app interfaces and kids' materials with a sunny accent on blue.

    Sunset Heat

    Event posters, music artwork and bold social graphics after dark.

    For text and structure, use a near-black or navy such as and a warm white background. The black and yellow combination is the high-visibility classic, great for signage and warnings. The four palettes below are built from these ideas.

    Using Sun Colors in Web and UI Design

    Treat sun colors as accents and surfaces, not as text. On a weather app I designed, a Sun Yellow icon on a white card looked cheerful in the mockup and almost disappeared in outdoor glare on a real phone. A dark outline and a pale Light Yellow badge behind it fixed the problem.

    Here is a simple set of CSS variables and a hero gradient that runs from glow to sunset:

    :root {
      --sun-light: #FFF4A3;
      --sun-gold: #FFD700;
      --sun-yellow: #FDB813;
      --sun-orange: #FF8C00;
      --sun-red: #FF4500;
    }
    .hero {
      background: linear-gradient(135deg, var(--sun-light), var(--sun-gold) 30%, var(--sun-orange) 70%, var(--sun-red));
    }

    Keep Red Orange for alerts, sale tags or the final gradient stop, and keep the large areas for Light Yellow or white. A softer cousin of this look lives on the soft colors page if the full-strength palette feels too loud.

    Contrast and Accessibility: Real WCAG Ratios

    WCAG AA asks for 4.5:1 for normal text and 3:1 for large text and interface components. Yellow and orange are light colors, so they behave very differently on white and on black. These ratios are calculated from the hex values:

    • Sun Yellow : 1.74:1 on white, 12.04:1 on black
    • Gold : 1.40:1 on white, 14.97:1 on black
    • Orange : 2.33:1 on white, 9.00:1 on black
    • Light Yellow : 1.12:1 on white, 18.72:1 on black
    • Red Orange : 3.44:1 on white, 6.10:1 on black

    The pattern is clear: never set yellow or orange text on white, and put dark text on them instead. I once fixed a client dashboard where orange buttons carried white labels at 2.33:1. Switching the labels to black raised the ratio to 9.00:1, and nobody complained about the look.

    Which label color gives the best contrast on an Orange (#FF8C00) button?

    Black on #FF8C00 scores about 9.00:1, while white manages only about 2.33:1.

    Red Orange is the only one that sits between the two worlds. White text on passes for large text (3.44:1) but fails for body text, while black text passes comfortably at 6.10:1.

    Try this: In the live preview under the heading, set Orange as the background and flip the text between white and black. Note both scores, then try the same with Red Orange and see where the pass mark falls.

    Four Aa text tiles on orange and red orange backgrounds with WCAG contrast ratios and AA pass or fail badges
    On orange and red orange, black text passes WCAG AA with 9.00:1 and 6.10:1, while white text fails.

    Sun Colors in Branding, Interiors and Fashion

    Yellow-orange signals warmth, optimism and attention, which is why so many food, travel and energy brands lean on it. The trick is proportion.

    Branding

    Pick one sun color as the hero and let neutrals do the rest. Sun Yellow works as a logo color if you pair it with dark navy or charcoal, since on white it loses legibility, as the ratios above show. Gold suits premium positioning, and the royal colors page shows how it behaves beside deep purple and blue.

    Interiors

    Light Yellow is too strong as a full wall color for most rooms, but a softened version warms a north-facing room. Orange and Red Orange work best in small doses: a chair, cushions, a lamp. The golds and oranges of the 70s color palette show how far a whole room can go with them.

    Fashion

    Sun Yellow and Gold look rich against denim, navy and cream. Orange pairs with olive and brown for an earthy look. In hair color, the sun-lit tones sit close to honey blonde, which is a muted cousin of Gold. For seasonal ideas, see the summer color palette.

    Printing Sun Colors Without Surprises

    Screens mix light, printers mix ink, so bright oranges shift most. I once received a poster proof where Red Orange looked noticeably flatter than on my monitor, and the gradient into Gold had a visible band. The fix was a proof on the final paper and a small tweak to the magenta value.

    Practical rules: ask for a physical proof, expect uncoated paper to dull yellows and oranges, and use a spot ink for a brand-critical orange. Remember too that is a flat yellow in print. If you want real metallic gold, you need foil or a metallic ink, not a CMYK mix.

    Sun Colors in Art, Flags and Symbols

    Painters and illustrators build sunlight in layers: a pale glow in the center, a golden mid-tone, then orange and red at the edges. That is the order of this palette, from Light Yellow to Red Orange. Pushing the glow cooler or whiter makes the sun feel higher and harsher, and warming it makes the scene feel like late afternoon.

    The sun also appears on national flags. Japan’s flag shows it as a red disc, while the flags of Argentina, Uruguay and the Philippines show it in gold or yellow. Shades differ by country and by official specification, so check the official source before matching one. For the longest days of the year, the June colors page has seasonal palettes that fit the solstice mood.

    Every color in this palette

    Sun Colors: questions people ask

    What is the hex code for the color of the sun?

    There is no single official code. The warm sun yellow used on this page is #FDB813 (RGB 253, 184, 19), and #FFD700 is a common brighter alternative. The sun's true visible color is white, #FFFFFF.

    What color is the sun really?

    White. Its light contains all visible wavelengths, and from space or the Moon it looks white. It looks yellow, orange or red from the ground because the atmosphere scatters part of the blue light.

    Why do we draw the sun yellow?

    Because that is how it looks to us through the atmosphere, especially in the morning and evening. Yellow also contrasts with a blue sky, so it reads clearly in drawings and icons.

    Is sun color the same as gold?

    Close, but not identical. Gold (#FFD700) has a hue of 51 degrees, while sun yellow (#FDB813) sits at 42 degrees, so it leans slightly more orange and feels a little warmer.

    What colors go well with sun yellow?

    Deep blues, navy and near-black are the strongest partners. Pale yellow, warm white and orange give soft, harmonious schemes, and sky blue adds a fresh daytime feel.

    Keep exploring