Market
Pricing
Sign inStart
Field GuideColour
Colour

Yellow gradient: bright codes that don't go green

Yellow is the colour that most often betrays a gradient: one wrong stop and sunshine becomes lime, or gold becomes khaki. Here is why it happens, and a set of codes that stay warm all the way through.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Seoul Lagoon · GR·5MBB·67

The short version

  • A yellow gradient turns green when it blends towards cyan, teal or blue, because the colours between yellow and blue pass through green.
  • Dark yellows drift towards olive and khaki, so deepen yellow with amber, orange or brown instead of grey or black.
  • Yellow stays sunniest when its other stops lean warm: cream, peach, orange, pink or gold.
  • White text almost never works on yellow; near black or a deep brown reads far better.
  • To join yellow and blue in one blend, put white, pink or violet between them so the midpoint never lands on green.
On this page
Why yellow gradients turn green or muddyBright yellow gradient codesLight yellow gradients: butter and creamGolden and dark yellow gradients without oliveYellow and blue gradients without the green middleText on a yellow gradient

A yellow gradient looks bright and happy when every stop leans warm: cream, butter, lemon, gold, orange. It goes wrong in two predictable ways. Blend it towards blue or teal and the middle turns green; darken it with grey and it turns olive. Keep the hue on the warm side of yellow, deepen it with amber rather than black, and it stays sunshine all the way across. The codes below are built on that rule.

Why yellow gradients turn green or muddy

Yellow sits right next to green on the colour wheel, much closer than most people expect. That makes it fragile in three situations.

  • Blending towards cool colours. Between yellow and cyan, teal or blue, the browser has to pass through green. A sunny yellow to sky blue blend gets a lime or sage stripe in the middle.
  • Darkening with black or grey. Our eyes read a dark, low saturation yellow as olive or khaki rather than "dark yellow". There is no deep yellow that still looks yellow.
  • Starting from a lemon that already leans green. Acid lemons such as #e4f04a look fresh alone but pull every neighbouring stop towards lime.

Goes green or olive

  • Yellow straight into sky blue or teal
  • Yellow darkened with grey or black
  • A cool lemon as the brightest stop
  • Yellow to green with no warm stop

Stays sunny

  • Yellow into cream, peach, orange or pink
  • Yellow deepened with amber and brown
  • A warm yellow like #facc15 as the brightest stop
  • White or pink placed between yellow and blue

The same grey middle problem affects any opposite colours, and muddy gradients covers it in general. Yellow simply shows it first, because green is so close.

Bright yellow gradient codes

These are the loud ones: summer, sale banners, kids' brands, festivals, warning signage done nicely. Each pairs yellow with a warmer partner so there is movement without drifting green.

Six bright yellow gradients. Every partner colour is warmer than the yellow, which is what keeps them clean.

Bright yellow is tiring in large amounts, so use these on posts and banners rather than a whole website. On a story at 1080×1920, a yellow blend that fades to orange at the bottom gives the eye a place to land and keeps the brightest part near the headline area at the top.

Light yellow gradients: butter and cream

Pale yellows behave like warm paper. They make excellent backgrounds for menus, invitations, newsletters and anything with a lot of reading, because dark type sits on them comfortably. Keep at least one stop close to white so the yellow reads as light, not as a tint over everything.

Soft yellows for long reads and gentle brands. They pair well with charcoal, brown and deep green type.

Golden and dark yellow gradients without olive

To make yellow feel rich, do not darken it. Shift it. Move the deeper stops towards amber, ochre and brown, and yellow turns into gold, honey and mustard instead of khaki. For metallic finishes specifically, gold gradients shows how to fake the shine.

Each deep stop moves towards amber or brown. The result reads as gold rather than olive.

Watch the shadow colour

If you shade a yellow object in a design with a grey or black overlay, it will look olive. Shade yellow with a translucent amber or brown instead.

Yellow and blue gradients without the green middle

Yellow and blue are a classic pairing, but a straight blend between them produces a green band. You have three good options: put a light stop between them, route the blend through pink and violet, or keep the two colours apart as areas rather than a blend.

The first blend shows the problem. The other three join yellow and blue without ever passing through green.

In modern CSS you can also ask the browser to take the long way round the colour wheel. Interpolating in OKLCH with longer hue sends yellow to blue through orange, pink and violet instead of green. Support and syntax are covered in CSS gradients in OKLCH.

css
.banner {
  /* fallback for older browsers: route through pink by hand */
  background: linear-gradient(90deg, #fde047, #f9a8d4, #818cf8);
}

@supports (background: linear-gradient(in oklch, red, blue)) {
  .banner {
    background: linear-gradient(in oklch longer hue 90deg, #fde047, #818cf8);
  }
}
The long route around the hue wheel avoids green. Keep the hand made fallback for browsers without colour space interpolation.

Text on a yellow gradient

Yellow is the lightest saturated colour there is, so white type disappears on it. White on #facc15 measures roughly 1.5 to 1, while a deep brown like #422006 measures above 9 to 1 on the same yellow. Use dark type almost everywhere, and save white for the deepest golds. Colour contrast and accessibility has the thresholds.

Lemon #fde047

White text

Fails badly

Brown text #422006

About 11:1
Sunflower #facc15

White text

About 1.5:1, fails

Brown text #422006

About 9.5:1
Dark gold #ca8a04

White text

About 2.9:1, fails

Brown text #422006

Passes
Ochre #a16207

White text

About 4.9:1, passes

Brown text #422006

Weak
Bronze #854d0e

White text

About 6.9:1, passes

Brown text #422006

Fails
BackgroundWhite textBrown text #422006
Lemon #fde047Fails badlyAbout 11:1
Sunflower #facc15About 1.5:1, failsAbout 9.5:1
Dark gold #ca8a04About 2.9:1, failsPasses
Ochre #a16207About 4.9:1, passesWeak
Bronze #854d0eAbout 6.9:1, passesFails
Flat colour measurements. On a gradient, check the lightest part behind each line of text.
Open every weekend
Pick your own strawberries.
Gates open at nine, bring a basket
Gradiently · @gradiently

Dark, warm type on a sunny yellow. It reads instantly and keeps the cheerful mood.

In Gradiently, Auto ink makes that call for you, picking light or dark type for each line from the Mark's own palette, so a yellow design does not need a manual contrast check every time you resize it. If yellow is part of your identity, yellow colour meaning covers what it signals, and orange gradients are its natural next door neighbour.

Design with a living gradient

Posts, stories, slides and banners in every size, with text that always reads.

Start designing, free

Questions people ask

Why does my yellow gradient look green?

Either it blends towards a cool colour such as blue or teal, or the yellow itself leans towards lemon. Use warmer partner stops like orange, pink or cream.

How do I make a dark yellow gradient that is not olive?

Deepen yellow with amber, ochre and brown instead of grey or black. That turns it into gold or honey rather than khaki.

What colour text goes on a yellow background?

Near black, charcoal or deep brown. White text fails contrast on almost every bright yellow.

How do I blend yellow and blue in one gradient?

Put cream, white or pink between them, or interpolate in OKLCH with longer hue so the blend travels through warm colours instead of green.

What is a good yellow gradient CSS code?

linear-gradient(135deg, #fde047 0%, #f59e0b 100%) is a dependable warm yellow that never drifts green.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

Why yellow gradients turn green or muddyBright yellow gradient codesLight yellow gradients: butter and creamGolden and dark yellow gradients without oliveYellow and blue gradients without the green middleText on a yellow gradient

Share this guide

Next in Colour

Teal gradient: codes from lagoon to deep sea

Keep reading

All Colour guides
Colour

Orange gradient: 25 warm codes from peach to burnt

5 min read

Orange is one of the warmest colours you can put on a screen, and one of the easiest to get wrong. Here are 25 copyable blends grouped by mood, plus the pairings and type rules that make them work.

Ideas and trends

Gold gradient: codes for metallic gold that looks real

5 min read

Most digital gold looks like orange juice or mustard. Real gold is mostly brown shadow, a little ochre and one pale flash of light. Here are codes that get it right, and the reasons they work.

Gradients

Why some gradients go grey in the middle, and how to stop it

5 min read

Blue and yellow should make a lovely gradient. Blend them the default way and you get a grey smudge in the middle. Here is exactly why, and four ways to keep every blend clean.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designing

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently