Palette maker

Pink to Yellow Gradient: Hex Codes, CSS and Palettes

The classic pink to yellow gradient runs from hot pink through peach to sunny yellow . In CSS that is linear-gradient(135deg, #FF69B4, #FFB07C, #FFE135).

Type
135°
 

More pink to yellow gradients to try

On this page
  1. Color codes
  2. Clean blend
  3. CSS code
  4. Angles
  5. Palettes
  6. Contrast
  7. Web and UI
  8. Print
  9. Fashion and art
  10. Related
  11. FAQ

I have used this pair on app onboarding screens, packaging and event posters. It rewards a little planning: a good middle stop, the right text color and a clear idea of what changes in print. Change the stops, angle and type in the studio above, then use the sections below to apply the result.

Pink to Yellow Gradient Colors and Their Codes

Three colors do the work. Hot pink is a bright, slightly cool pink at 330° hue, somewhere between bubblegum and fuchsia. Peach sits at 24°, a soft orange-pink that acts as the bridge. Yellow is a buttery yellow at 51°, a little warmer than pure lemon ( sits at 60°).

Here are all three in the formats you will actually need. The CMYK figures are straight screen-to-ink conversions, so treat them as a starting point for a printer, not a final recipe.

Color HEX RGB HSL CMYK
Hot pink 255, 105, 180 330°, 100%, 71% 0, 59, 29, 0
Peach 255, 176, 124 24°, 100%, 74% 0, 31, 51, 0
Yellow 255, 225, 53 51°, 100%, 60% 0, 12, 79, 0

If you want pink shades without the warm shift, the pink gradient page covers lighter and deeper pinks in detail.

Why Pink and Yellow Blend So Cleanly

Some gradients go gray in the middle. Pink to green and pink to blue both do, because the two colors pull against each other. Pink to yellow does not. Both ends have a red value of 255, so only green and blue change: green climbs from 105 to 225 while blue drops from 180 to 53. Nothing dips, so the middle stays bright.

Large coral-peach swatch #FFA575 beside three similar colors: peach, light salmon and coral, with short difference notes
Halfway between #FF69B4 and #FFE135 lands on #FFA575, close to peach but a touch deeper.

The exact halfway mix of and is , a coral-peach. That is why the blend reads as a sunset or a scoop of sherbet. Adding as a middle stop gives you a defined center you can move around, which matters when you want more pink or more yellow in the visible area.

The midpoint is already peach

Halfway between and is . A peach stop like simply lifts it a touch lighter and warmer.

Copy-Ready CSS for a Pink to Yellow Gradient

Adjust stops and angle in the studio, then paste the output. These are the three snippets I reach for most, and each one drops straight into a stylesheet.

Linear, the everyday choice

.hero {
  background: linear-gradient(135deg, #FF69B4 0%, #FFB07C 50%, #FFE135 100%);
}

For Tailwind, bg-gradient-to-br from-[#FF69B4] via-[#FFB07C] to-[#FFE135] does the same in v3. In v4 the class is bg-linear-to-br.

Radial and conic

.glow {
  background: radial-gradient(circle at 30% 20%, #FFE135 0%, #FFB07C 45%, #FF69B4 100%);
}
.ring {
  background: conic-gradient(from 90deg, #FF69B4, #FFE135, #FF69B4);
}

Ending the conic gradient on its starting color removes the hard seam. The radial version puts the yellow in a corner like a low sun.

Smoother blending in OKLCH

.smooth {
  background: linear-gradient(in oklch 135deg, #FF69B4, #FFE135);
}

Interpolating in OKLCH travels through warm orange hues and keeps brightness more even. Current browsers support it. Keep an ordinary sRGB gradient line above it as a fallback.

Which Angle and Gradient Type Looks Best?

Angle changes the mood more than people expect. At 90deg the blend runs left to right and feels calm and wide, good for banners. At 135deg it runs corner to corner and feels energetic, which is my default for hero sections and cards. At 180deg it runs top to bottom and suits tall mobile screens.

Which CSS angle sends a gradient from the top left corner to the bottom right?

In CSS, 0deg points up and angles turn clockwise, so 135deg ends at the bottom right.

For a sun-above-the-horizon effect, put yellow on top: linear-gradient(0deg, #FF69B4, #FFE135) starts at the bottom with pink. Radial works for spotlights behind a product, and conic suits loaders and avatar rings. Pink and yellow are close in lightness, so linear gradients need a long run to feel smooth. Short, tight ones can look like a stripe.

Try this: Take one card and apply the same three stops at 90deg, 135deg and 180deg. Squint at each one and pick the angle where your headline sits on the calmest area.

Pink to Yellow Palettes You Can Use Right Away

A gradient alone is rarely a full design. It needs a dark anchor for text, a soft tint for surfaces and sometimes a deeper pink for buttons. The palettes below take the same pink-to-yellow idea and add those supporting colors so the blend has something to rest against.

Sherbet Stand

Menus, packaging and bright landing pages that need a friendly, edible feel.

Soft Sorbet

Wellness apps, baby products and gentle presentation slides with dark text.

Tropical Evening

Event posters and music sites where saturation and a dark base matter.

Cream Blush

Interiors, stationery and editorial pages with a warm, quiet mood.

For quieter pages, swap the saturated ends for pastel versions and pair them with warm neutrals. The beige gradient guide has good cream and sand tones for that job.

Text Contrast on Pink and Yellow Backgrounds

This is where most pink-to-yellow designs go wrong. White text on hot pink measures 2.65:1, well short of the 4.5:1 that WCAG AA asks for normal text. White on yellow is far worse at 1.31:1. Even hot pink against yellow is only 2.03:1, so the two ends cannot carry each other as text and background.

Which text color passes WCAG AA on the hot pink #FF69B4 end?

#333333 gives 4.77:1 on hot pink, while white manages only 2.65:1.

Dark gray fixes everything. #333333 measures 4.77:1 on hot pink, 7.07:1 on peach and 9.67:1 on yellow, so one text color passes across the entire gradient. I learned this on a loyalty app for a dessert chain, where the white labels on pink looked fine on my monitor and failed in an audit. Switching to solved it without touching the brand colors.

Four Aa tiles compare white and dark gray text on hot pink and yellow with contrast ratios and pass or fail
Dark gray #333333 passes AA on pink and yellow, while white fails on both.
.hero {
  background: linear-gradient(135deg, #FF69B4, #FFB07C, #FFE135);
  color: #333333;
}

If you need yellow itself as text on a light page, it has to be much deeper. The dark gold page shows tones that hold up on white.

Using Pink to Yellow in Websites and Apps

Gradients work best as a stage, not as a reading surface. Keep long paragraphs on a flat tint and let the gradient frame the content. Here is where I use it most:

  • Hero backgrounds, with a dark headline and a flat white card for forms
  • Primary buttons, using a dark label and a slightly deeper pink on hover
  • Story rings, progress bars and loaders, where no text sits on top
  • Chart fills and illustration backgrounds, where color carries mood

On dark interfaces the same gradient becomes a glow. Place it behind a surface at low opacity and it reads like neon light rather than a candy wrapper. Avoid putting thin gray captions on the yellow end, because small text there needs the full dark value to stay readable.

Screens add light, while ink absorbs it, so bright gradients lose some punch on paper. On one packaging proof, the hot pink came back flatter than the screen version and the yellow looked a touch warmer. Nothing was wrong with the file. That is simply how the conversion behaves.

A few habits help:

  1. Start from the CMYK values in the table, then adjust against a printed proof, never the monitor.
  2. Keep the gradient long and gentle, since short steps between pink and yellow can show visible bands.
  3. Ask the printer whether a spot color can match the pink if brand accuracy matters.
  4. Keep the peach stop, because it prevents a washed-out middle when inks overlap.

Uncoated paper dulls everything further, so choose a slightly stronger pink than you think you need.

Fashion, Interiors and Art With Pink to Yellow

In clothing, this gradient is the look of dip-dye and tie-dye, sunset prints and summer swimwear. Keep the shift gradual and add a neutral such as cream, white or soft tan so the piece does not feel loud. The tan page has useful warm neutrals for that.

In interiors, an ombré wall or a painted arch works best when the lightest color sits near the ceiling or window. Choose matte finishes and test large swatches in daylight and evening light, because yellow shifts more than pink as the light changes. For art, watercolor and gouache do this blend naturally: wet pink beside wet yellow and let the peach form where they meet.

Pink to yellow is warm and daytime. Pink to purple is its cooler, dreamier neighbor, closer to dusk and nightlife, and the pink to purple gradient page covers that mood. If you want something with high contrast and a cooler edge, the yellow blue gradient is the better pick, though it needs care to avoid a green middle.

Pink to yellow is also one slice of a larger spectrum. The warm stretch of the rainbow gradient runs through red, orange and yellow, so you can borrow its stops to extend this blend into a fuller sunset. Reversing the order, yellow first and pink last, shifts the feel from morning to evening.

The colors behind these gradients

Pink to Yellow Gradient: questions people ask

What are the hex codes for a pink to yellow gradient?

A reliable trio is hot pink #FF69B4, peach #FFB07C and yellow #FFE135. In CSS: linear-gradient(135deg, #FF69B4, #FFB07C, #FFE135). Use only the two end colors if you want a simpler two-stop blend.

What color is between pink and yellow?

Peach, coral and soft orange. The exact halfway mix of #FF69B4 and #FFE135 is #FFA575, a warm coral-peach, which is why the blend looks like a sunset rather than a muddy gray.

Do pink and yellow go well together?

Yes, especially as a gradient or when one color leads and the other accents. They share a warm red channel, so they feel related. Keep text dark, because pink and yellow are close in lightness and make weak contrast pairs.

What text color works on a pink to yellow gradient?

Dark gray such as #333333 passes WCAG AA across the whole gradient, with ratios of 4.77:1 on hot pink, 7.07:1 on peach and 9.67:1 on yellow. White text fails on most of it.

How do I make a pink to yellow gradient in CSS?

Use background: linear-gradient(135deg, #FF69B4, #FFE135); on any element. Add a middle stop like #FFB07C for more control, or add in oklch after the opening bracket for smoother interpolation in current browsers.

Keep exploring