On this page
Yellow is the lightest of the saturated hues, which makes it forgiving as a background and unforgiving almost everywhere else: text disappears, midtones turn olive and print goes flat. The studio above lets you move the stops, change the angle, switch the gradient type and copy the CSS. The rest of this page covers the exact values, the traps and where each version works best.
Yellow Gradient Hex Codes, RGB, HSL and CMYK
These are the three core stops, with every value calculated directly from the hex code. Use them as a base and adjust from there.
| Name | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Light Yellow | 255, 249, 168 | 56°, 100%, 83% | 0, 2, 34, 0 | |
| Yellow | 255, 230, 0 | 54°, 100%, 50% | 0, 10, 100, 0 | |
| Golden Yellow | 255, 184, 0 | 43°, 100%, 50% | 0, 28, 100, 0 |
The CMYK figures are straight mathematical conversions, so treat them as a starting point. A real press profile will give different numbers, which the printing section below explains.
Look at the RGB columns. Between and only the green channel moves (230 down to 184), while red stays at 255 and blue at 0. That is why this pair blends so cleanly: it is a pure slide in hue from 54° to 43°. The halfway point is , a warm sunflower gold, and it is a handy extra stop if you want to control the middle yourself.
How Light Yellow, Yellow and Golden Yellow Differ
Light Yellow is a tint: 83% lightness, a buttery lemon that reads as soft and calm. Yellow is full strength and slightly warm, the colour most people picture for sunshine or a highlighter. Golden Yellow sits at 43° on the wheel, which is where yellow starts to read as gold, marigold or amber.

The web’s own “yellow” is , with a hue of 60°. It has a greenish, almost fluorescent edge and is harsh over large areas. Our is 6° warmer, which is enough to feel friendlier on screen. Lemon sits near that 60° end, canary in the middle, and mustard and ochre are the darker, duller cousins at lower lightness.
Around 60° leans lemon, 50° to 55° reads sunny, 43° reads gold, and anything under 35° starts to look orange.
The CSS for a Yellow Gradient (Linear, Radial, Conic)
The standard version is a three-stop linear gradient. Keep a solid fallback line above it:
.hero {
background: #FFE600;
background: linear-gradient(135deg, #FFF9A8 0%, #FFE600 50%, #FFB800 100%);
}
An angle of 135deg puts the light end top left and the gold end bottom right, which feels like light falling from a window. Use 180deg for a clean top-to-bottom fade and 90deg for a left-to-right banner.
Each type suits a different job:
- Linear: page backgrounds, hero sections, cards and button fills.
- Radial: a spotlight or glow, such as
radial-gradient(circle at 30% 20%, #FFF9A8, #FFE600 45%, #FFB800). - Conic: badges, loaders and sun-ray effects, such as
conic-gradient(from 200deg, #FFE600, #FFB800, #FFF9A8, #FFE600).
Why Yellow Gradients Turn Muddy and How to Fix It
Yellow behaves badly when you darken it. Blend toward black in a straight line and the midpoint is roughly , a dull olive green. On one client project, a yellow-to-black banner looked fine in the mockup tool and then came out swampy in the browser, because the tool had been using a different blending method.
What usually makes a yellow-to-black gradient look dirty?
Halving the red and green of yellow leaves a dull olive such as #807300 in the middle.
The simplest fix is to darken through warm hues rather than straight to black. Try , then , then (a toasted brown). The second fix is to ask the browser to blend in a perceptual space: linear-gradient(in oklch 135deg, #FFE600, #6B3A00). Keep the standard line above it for browsers that skip the newer syntax.
Try this: Build two banners from to , one with plain
linear-gradientand one within oklch. Then add as a middle stop to the first. Compare the midpoints side by side.
Text Contrast and WCAG on Yellow Gradients
WCAG asks for a 4.5:1 contrast ratio for normal text and 3:1 for large text and interface components. Yellow is so light that it passes easily with dark text and fails completely with white. I calculated these ratios from the colors’ relative luminance:
- Near-black on : about 16.1:1
- Near-black on : about 13.7:1
- Near-black on : about 10.0:1
- White on the same three stops: about 1.08:1, 1.27:1 and 1.73:1
On a gradient, always test the stop that sits behind the text, and treat the lowest ratio as your result. The same rule applies to borders and icons: a outline on a white page measures about 1.27:1, so it fails the 3:1 target for interface components and needs a darker edge. Reverse the setup and yellow shines, since on deep navy reaches about 13.6:1.
Which text color is safest on a #FFB800 stop?
Dark ink gives about 10:1 on #FFB800, while white only reaches about 1.7:1.
Using Yellow Gradients in Web and UI Design
Yellow works best as an accent with a clear job: a primary button, a promo strip, a progress bar, a highlight behind a key number. A subtle top-to-bottom fade from to with a 1px darker border and dark label gives a button depth without needing shadows. On dark interfaces the same gradient reads as a glowing call to action.
For large areas, go lighter. A background that fades from to keeps body text readable and feels warm rather than loud. I once fixed a failing checkout page by switching its saturated yellow banner to this pale pair and moving the saturated gold into a single button. Contrast checks passed and the button became the obvious next click.
If you want a gradient that stays calm behind a lot of content, mix in a neutral from the gray gradient family for cards and dividers.
Yellow Gradients in Branding, Interiors and Fashion
In brand work, a yellow gradient signals warmth and optimism, but it should rarely be the only version of the mark. Keep a flat or for favicons, small print and one-colour uses, and save the gradient for large shapes, packaging panels and social headers.
In interiors, the same idea becomes an ombre wall or a glazed finish: Light Yellow near the ceiling deepening toward golden at the base. Natural light changes the result, since yellows look cooler and paler in rooms that get little direct sun, so test a swatch on the actual wall before committing.
In fashion and art, the gradient shows up as dip-dye, sun-faded cotton and wet-on-wet watercolour washes. Both start with pale lemon, move into a warm gold and stop before brown, which keeps the effect fresh rather than dingy.
Printing a Yellow Gradient Without Surprises
Yellow is a process ink, so smooth fades between 0% and 100% yellow print well. The trouble comes at the edges. On one packaging proof, the pale end of a lemon gradient dropped out into a flat white band, because the tint was only a few percent of ink. I raised the starting tint and the band disappeared.

Screen colours also need converting. is bright and saturated, and once it is converted to CMYK on coated paper it usually prints a little duller than it looks on screen. Uncoated stock dulls it further. Ask for a proof using the printer’s own profile, and never judge a gradient from the file on your monitor.
Long, subtle fades can show visible steps, known as banding. Adding a fine grain or noise layer to the artwork breaks those steps up.
Yellow Gradient Palettes You Can Copy
Each palette below is built from the stops on this page, plus neutrals or partners that keep the yellow readable. Copy any hex code, or drop a whole set into the studio to preview it as a gradient.
Playful landing pages and product badges with strong dark text on top.
Warm food brands, packaging and cafe menus that need depth without olive.
Dashboards, event posters and buttons where yellow must pop against dark.
Gentle wellness sites, baby products and pastel social graphics.
Lemon Drop is the safest starting point for interfaces. Honey Toast is the one to use when you need darker, warmer shades without the olive trap, and Sun on Navy turns yellow into a high-contrast accent.
Pairing Yellow With Other Colors and Gradients
Blue and violet sit opposite yellow on the colour wheel, so they make the strongest contrast. A dark blue gradient behind golden type is hard to beat for posters and dashboards, and a softer violet-grey, like the schemes in purple and grey, calms yellow down for editorial layouts.
If you want the yellow itself to travel, push it toward neighbouring hues. Warm it into reds and oranges and you get a sunset gradient. Pair it with magenta for the sweeter pink to yellow gradient. Or let it take one stripe of the full rainbow gradient, where it usually sits between green and orange.
The colors behind these gradients
Yellow Gradient: questions people ask
What is the hex code for a yellow gradient?
There is no single code, because a gradient needs at least two stops. A reliable trio is #FFF9A8, #FFE600 and #FFB800, which runs from pale lemon to golden yellow.
How do I make a yellow gradient in CSS?
Use background: linear-gradient(135deg, #FFF9A8, #FFE600, #FFB800); on any element. Add a plain background-color line above it as a fallback for very old browsers.
What two colors make a yellow gradient?
Yellow plus a warmer or lighter neighbor works best. Light yellow to golden yellow stays clean, and yellow to orange or yellow to white are the most common variations.
Why does my yellow to black gradient look green?
Mixing yellow with black lowers red and green together, which lands on olive in the middle. Shift through amber and brown instead, or interpolate in OKLCH.
Can I put white text on a yellow gradient?
Not safely. White on #FFF9A8, #FFE600 and #FFB800 measures roughly 1.08:1, 1.27:1 and 1.73:1, far below the 4.5:1 WCAG AA target. Use near-black text.
Keep exploring
- Brown Gradient: Dark Brown Gradient Colors, Hex Codes and CSS
- Pastel Green Gradient: Backgrounds, Wallpapers and CSS Codes
- Black Gradient: Dark Theme Gradients with CSS Codes
- Green Gradient: Color Combinations, Hex Codes and CSS
- Bronze Gradient: Wallpaper Colors, Hex Codes and CSS
- Blue Grey Gradient: Color Codes and CSS Examples
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes