Palette maker

Yellow Blue Gradient: Colors, Hex Codes and CSS

A yellow blue gradient blends a bright lemon yellow into a clear blue, and the version that works best on screen runs from to through a soft aqua green, .

Type
135°
 

More yellow blue gradients to try

On this page
  1. Color codes
  2. The look
  3. Muddy middle
  4. CSS code
  5. Contrast
  6. Web and UI
  7. Flags and brands
  8. Interiors
  9. Printing
  10. Palettes
  11. FAQ

Use the studio above to move the stops, change the angle or switch to radial or conic, then copy the CSS. Below you will find exact codes, the reason this pair can turn muddy, how to fix it, and how to use the result in UI, branding, print and interiors.

Yellow, aqua green and blue: exact color codes

The main gradient uses three colors. Yellow is the warm start, blue is the cool finish, and aqua green is the bridge that keeps the middle fresh.

Color HEX RGB HSL CMYK
Yellow 255, 230, 0 54°, 100%, 50% 0, 10, 100, 0
Aqua Green 127, 205, 187 166°, 44%, 65% 38, 0, 9, 20
Blue 0, 119, 255 212°, 100%, 50% 100, 53, 0, 0

RGB and HSL are exact conversions from the hex codes. The CMYK numbers are the plain mathematical conversion, so treat them as a starting point: a real press profile will change them, and sits outside what CMYK ink can fully reproduce.

The hue gap matters too. Yellow sits at 54° and blue at 212°, so they are 158° apart, close to opposite on the color wheel. That near-opposite relationship is why the pair feels so energetic, and also why it needs a little care.

What a yellow blue gradient looks like

is a clean lemon. It is slightly warmer than pure , which sits at 60° and can look like a highlighter pen. is a bright azure between sky and cobalt, closer to a screen blue than a navy. Put them side by side and you get high energy: sunshine against open sky.

The aqua green changes the mood. Without it the fade feels like daylight sliding into evening. With it you get a shallow-water, coastal look. That middle stop sits close to teal, so if you want to build around it, the teal gradient guide goes deeper. Push the middle toward grass or leaf green instead and you are in different territory, covered on our green gradient page.

Swapping the yellow changes the feel as well. A gold such as makes the gradient richer and more autumnal. A pale lemon such as makes it soft and sleepy. Lemon at full strength is the freshest option.

Why blue to yellow goes muddy in the middle

By default, browsers blend gradient colors in sRGB by averaging the red, green and blue channels along a straight line. Take pure and pure : the halfway point is 128, 128, 128, a flat grey. Our pair is kinder, because the halfway point of and is , a dusty sage. It is not grey, but it is clearly duller than either end.

What is the simplest way to stop a yellow to blue gradient turning dull in the middle?

A bridge color such as #7FCDBB keeps the blend away from the grey zone that a straight mix creates.

Lightness plays a part as well. Yellow is far brighter than blue (relative luminance of about 0.78 against 0.20), so the brightness has to fall quickly across the gradient. A bridge color softens that drop. There are three reliable fixes:

  • Add an aqua green stop such as at 50%, so the blend never passes through the dull zone.
  • Blend in a perceptual color space with in oklab or in oklch. The oklch option sweeps the hue through cyan and green, a small slice of a rainbow gradient.
  • Move the endpoints closer in hue, for example a lime-leaning yellow into a cyan-leaning blue.

CSS code for a yellow blue gradient

You can copy any of this directly, or build your own in the studio above and compare. Every snippet uses the three colors from the table.

Linear, radial and conic

/* three-stop linear */
.hero {
  background: linear-gradient(135deg, #FFE600 0%, #7FCDBB 50%, #0077FF 100%);
}

/* radial glow from the top left */
.glow {
  background: radial-gradient(circle at 20% 20%, #FFE600, #7FCDBB 45%, #0077FF);
}

/* conic dial */
.dial {
  background: conic-gradient(from 200deg, #FFE600, #7FCDBB, #0077FF, #FFE600);
}

At 135deg the gradient runs from top left to bottom right, so the yellow sits behind a top-left headline. Use 180deg for a vertical sunrise and 90deg for wide banners.

Smoother blending with color spaces

.smooth {
  background: linear-gradient(135deg, #FFE600, #0077FF);
  background: linear-gradient(135deg in oklab, #FFE600, #0077FF);
}

The oklab version gives an even midpoint, while oklch travels around the hue wheel and passes through bright green. Current Chrome, Edge, Firefox and Safari support color-space interpolation. Declare the plain line first, as above, so anything older still shows a gradient.

Contrast and accessibility on yellow, aqua and blue

WCAG asks for 4.5:1 for normal text and 3:1 for large text and interface components. These ratios are calculated from the exact hex codes on this page:

  • Black on : about 16.6:1
  • Dark navy on : about 12.8:1
  • Black on : about 11:1
  • Black on : about 5.1:1
  • White on : about 4.1:1 (fails for small text)
  • against : about 3.3:1
  • White on : about 1.3:1

I hit the white-on-blue problem on an app dashboard. The button labels were white on at 4.1:1, which fails AA for small text. We deepened the button to , which gives about 5.3:1, and the design still looked like the same blue.

Which text color is the safest choice on a #FFE600 background?

Dark navy reaches about 12.8:1 on this yellow, while white manages only about 1.3:1 and blue about 3.3:1.

The gradient itself is the other risk. Text that is readable on the yellow end can fail in the middle, because the background changes under it. Keep headlines on a solid panel or a navy overlay, and for bolder pairings see our high contrast color palettes.

Try this: Place your headline over the gradient and sample the background at three spots: left, middle and right. Check each against your text color. If any fall below 4.5:1, add a navy overlay at 30% opacity and test again.

Using a yellow blue gradient in web and UI design

Gradients work best as decoration: hero backgrounds, section headers, banners and empty states. Keep interactive elements such as buttons and inputs in solid colors, so their edges and states stay clear. Yellow and blue also stays distinguishable for most people with red-green color blindness, which makes it a friendlier choice than red and green for charts.

Five-swatch palette strip: yellow background, pale lemon neutral, aqua accent, blue main, navy text, with hex codes
Yellow stays behind as a wash, while blue and navy handle buttons and text.

For a travel app client, I used the to range as a soft header wash and kept for primary buttons with bold labels. Yellow stayed a background and never became a text color. That split made the screens feel sunny without hurting legibility.

Yellow behind, navy in front

Use yellow for large washes, dark navy for text and blue for buttons with bold or large labels.

For dark mode, start from a deep navy such as and let the yellow appear as a small glow, not a full background. A faint noise overlay also hides banding on large panels. If you need a calmer, cooler page, a single-hue blue gradient is the simpler route.

Flags, teams and brands that use yellow and blue

Ukraine’s flag is the best-known example. Article 20 of the country’s Constitution describes it as two equal horizontal bands, blue above yellow. Sweden’s flag uses the same two colors in a different layout, with a yellow cross on a blue field. Both are flat colors with official shades, and the bright and here are not those shades, so check an official source before making anything that must match a flag.

For a flag-style split with no blending, use hard stops:

.split {
  background: linear-gradient(180deg, #0077FF 50%, #FFE600 50%);
}

The pairing is also common in sport and retail. The Golden State Warriors play in blue and gold, Brazil’s national football team wears yellow shirts with blue shorts, and IKEA’s logo is blue and yellow. A gradient version suits merchandise, posters and match-day graphics, where you want movement but still need the team colors to read instantly.

Yellow and blue in interiors, fashion and art

Van Gogh leaned on this pair in The Starry Night and Café Terrace at Night, where warm yellow light glows against deep blue. In paint, yellow and blue mix to green, so a green middle feels natural in a painted gradient. That is the same reason aqua green works so well in a digital one.

In interiors, saturated is too strong for large walls. Try a pale tint like near a ceiling, aqua walls in the middle and blue only on a base, a door or textiles. Test paint swatches in daylight and in evening light, because the blue shifts more than the yellow.

In fashion, the gradient appears as ombre dye, tie-dye and sports kits. Fabric absorbs color unevenly, so dyed results are usually softer than the screen. Ask for a swatch before committing to a full run.

Printing a yellow blue gradient without surprises

Yellow converts well to CMYK. becomes roughly 0, 10, 100, 0 and stays bright on coated paper. The blue is the problem. is a vivid screen blue that CMYK ink cannot fully match, so it prints flatter.

I learned this on a brochure proof. The blue end that looked electric on my monitor came back calmer and slightly darker, and the gradient lost some of its sparkle. Converting to CMYK at the start of the design would have shown me the shift earlier.

Two habits help. Ask for a printed proof on the actual paper, because uncoated stock dulls both ends. And start the gradient from a visible tint, since very pale edges can vanish on press. A longer gradient also bands less than a short one.

Ready-to-use yellow and blue palettes

The palettes below turn the gradient into working color sets. Each one has a light, a middle, a blue and a dark anchor for text, so you can build a page, a slide deck or a poster without hunting for neutrals.

Lagoon Sun

Bright hero sections, event banners and playful app headers with navy text.

Soft Morning

Calm wellness pages, invitations and light backgrounds with gentle contrast.

Sea Glass Sunrise

Travel brands, packaging and posters that need a fresh coastal feel.

Golden Hour Pool

Sports graphics, merchandise and bold social posts with a richer gold.

For a softer, minty direction, our pastel green gradient guide pairs well with the Soft Morning set. If you want more heat in the yellow end, an orange gradient shows how to shift warm without losing the blue contrast.

The colors behind these gradients

Yellow Blue Gradient: questions people ask

What colors make a yellow blue gradient?

The simplest version uses two stops, such as #FFE600 and #0077FF. Adding a green or aqua stop in the middle, such as #7FCDBB, gives a cleaner and more natural transition.

Why does my yellow to blue gradient look green or grey in the middle?

Browsers blend gradients in sRGB by default, and the average of a saturated yellow and blue is a dull grey or sage green. Add a bridge stop or use the in oklch or in oklab keyword to keep the middle clear.

What angle is best for a yellow blue gradient?

135deg is a safe default: yellow sits at the top left and blue at the bottom right, which suits headlines placed top left. Use 180deg for a sunrise-style vertical fade and 90deg for wide banners.

Is yellow and blue a good combination for text?

Yes, if you pick the right pairing. Dark navy on yellow is easy to read, but blue text on yellow is only around 3.3:1 for the codes on this page, so keep it for large headings.

How do I make a yellow blue gradient in CSS?

Write background: linear-gradient(135deg, #FFE600, #7FCDBB, #0077FF); and change the angle or stops to taste. For smoother blending, add a second line using linear-gradient(135deg in oklab, ...) after the plain one.

Keep exploring