By Calder WynneBrand and UI designer, 12 years·Updated
The pink blue gradient on this page runs from pink through lavender to sky blue . Paste linear-gradient(135deg, #FF9ECD, #C3A6FF, #5BC0FF) into a background rule and it works.
I’m Calder Wynne, and I have spent 12 years building color systems for brands, apps and print. This pairing turns up in all three, and it behaves differently on a screen, on a wall and on a press sheet. The studio above lets you move the stops, change the angle and switch between linear, radial and conic, then copy the CSS. Everything below explains what to do with the result.
What Pink, Lavender and Sky Blue Look Like Together
Pink is a bright bubblegum pink at hue 331°, leaning a little toward magenta rather than peach. Sky blue is a clear, light azure with no green in it. Side by side they feel like cotton candy, or the sky ten minutes after sunset, which is why the pairing keeps appearing in app onboarding screens, music artwork and nursery decor.
Lavender , at hue 260°, is the stop that makes the gradient feel finished. A direct pink to blue blend works, but a violet midpoint copies the way real skies shift and stops the two colors looking like stickers pressed together. If you want a milkier, quieter start, compare the pink with baby pink and see which one sits better on your background.
Hex, RGB, HSL and CMYK Codes for Every Stop
Here are the exact values for the three core colors. All three sit at full HSL saturation, so the only thing that really separates them is hue and lightness. That is why they blend so cleanly.
Color
HEX
RGB
HSL
CMYK
Pink
255, 158, 205
331°, 100%, 81%
0, 38, 20, 0
Lavender
195, 166, 255
260°, 100%, 83%
24, 35, 0, 0
Sky Blue
91, 192, 255
203°, 100%, 68%
64, 25, 0, 0
The CMYK figures are plain mathematical conversions from RGB. A real press, paper and ICC profile will shift them, so treat the numbers as a starting point for a proof, not a final recipe.
Copy-Ready CSS for a Pink Blue Gradient
The three snippets below cover the shapes people ask for most. The first is the classic diagonal fade, the second is a soft glow for hero sections, and the third is a color wheel effect.
In the conic version the last stop repeats the first, which hides the hard seam where the circle closes. For gradient text, put the same linear-gradient on the element, add background-clip: text and set color: transparent. Keep that for headings of 24px or larger, because thin pastel letters disappear fast.
Why the Middle of a Pink to Blue Fade Can Look Flat
Mix and directly and the midpoint lands at . That is a pleasant periwinkle, but its HSL saturation has dropped to about 53%, against 100% at both ends. The gradient dips in vividness halfway across, and on a large screen you can see it as a slightly dusty band.
The lavender fix
Lavender keeps full saturation at hue 260°, so the middle of the fade stays as bright as the ends.
What keeps the middle of a pink to blue gradient lively?
A saturated violet midpoint replaces the dull blend you get when the two end colors simply average out.
You have two fixes. Add a violet stop as above, or ask the browser to interpolate in a perceptual space: linear-gradient(in oklab 135deg, #FF9ECD, #5BC0FF). Current major browsers support this, and older ones ignore the whole declaration, so write a plain sRGB gradient on the line before it as a fallback.
Try this: Open the studio, delete the middle stop and look at the center of the fade. Then add back at 50% and compare. Most people see the difference immediately.
Mixing pink and sky blue directly drops the middle to 53% saturation; lavender keeps it at 100%.
Pastel, Neon and Twilight Variations
Once you have the core fade, small changes in lightness change the mood completely. These are the variations I reach for most, and each one is ready to load into the studio:
Soft Morning: , and at 120°, for nurseries and wellness pages.
Neon Arcade: , and at 135°, for gaming and event posters.
Twilight: , and at 160°, for dark mode heroes.
Ice Rose: to at 200°, a two-stop fade for cards and buttons.
Blue to Pink Reverse: , , at 45°, which moves the visual weight to the left.
If you want the pink to lean more toward violet, our pink to purple gradient page goes deeper on that side of the spectrum. For blues that go darker and more corporate, the blue gradient page covers the cooler end.
Contrast and WCAG: Can You Put Text on Pink and Blue?
White text looks tempting on a pastel gradient, but it fails. I computed the contrast of white against each stop: about 1.9:1 on , 2.1:1 on and 2.0:1 on . WCAG AA asks for 4.5:1 for body text and 3:1 for large text, so white misses both targets on every stop.
Which text color passes WCAG AA for body text on pink #FF9ECD?
#36393E gives about 6.1:1 on the pink, while white manages only about 1.9:1.
Dark ink solves it. The charcoal #36393E scores about 6.1:1 on the pink, 5.6:1 on the lavender and 5.8:1 on the sky blue, so it passes AA across the whole fade. I once fixed a client’s pastel sign-up button this way: the white label had looked elegant in the mockup and was close to unreadable on real phones in daylight. The dark label cost nothing in style.
Flat by design
Pink and sky blue have almost the same relative luminance (about 0.50 and 0.47), so the fade shifts hue without shifting brightness. Shapes placed on it can look flat unless you add a darker element.
White text scores about 2:1 on every stop, while charcoal #36393E clears 5.6:1 across the whole fade.
Ready-Made Pink and Blue Palettes to Copy
A gradient rarely works alone. It needs a dark neutral for text, a pale tint for surfaces and sometimes one deeper accent so that buttons and icons have something to stand on. The palettes below are built that way, each with five colors you can copy.
Cotton Candy Sky
Landing pages, app onboarding and social posts with dark text on top.
Nursery Cloud
Baby shower invitations, soft wall paint ideas and gentle stationery.
Neon Arcade
Gaming overlays, event posters and music artwork with a bold retro feel.
Dusk Studio
Dark mode hero sections and presentation covers that need depth.
Pick by mood. Cotton Candy Sky is the everyday choice, Nursery Cloud is the gentlest, Neon Arcade is loud on purpose and Dusk Studio gives you a dark base for modern interfaces.
Using Pink and Blue in Web, Branding, Interiors and Fashion
The same fade needs different handling depending on the surface. These are the patterns that have held up in my own projects:
Web and UI: use the gradient on hero backgrounds, empty states and cards, with text and a solid, darker button so the call to action stands apart.
Branding: pick one stop as the brand color and let the gradient be a supporting texture, because a fade alone is hard to reproduce in one-color print.
Interiors: choose a matte paint in the pink and a quiet blue accent, since a wall ombré needs a skilled hand and plenty of light.
Fashion and art: tie-dye, airbrush and watercolor washes imitate this fade naturally, and lavender helps bridge the two colors.
If the blend needs more depth, the purple gradient page shows how violets can carry a similar palette into richer, darker territory.
Printing a Pink Blue Gradient Without Surprises
Bright screen colors do not always survive CMYK. On one brochure job, the sky blue came back from the proof visibly duller than on my monitor, and the pink-to-lavender transition showed faint steps in the lightest area. The fix was a soft proof in the printer’s own profile and a slightly lighter, less saturated blue.
Here is what I now do every time. Convert to the printer’s CMYK profile early, so surprises arrive at the design stage. Add very light noise or grain to the fade to hide banding. Ask for a physical proof when the gradient covers a large area, because paper stock changes the result more than most people expect.
How It Differs from Pink to Purple, Cyan and Orange Blue
The closest neighbor is the pink to purple fade, which stays in warm and violet territory and feels more romantic and nightlife-oriented. Pink blue goes further across the wheel, so it feels fresher and more open. Our cyan gradient page covers the greener, icier end of blue, which pairs better with white and silver than with pink.
For high-contrast designs, look at the orange to blue gradient, which uses complementary colors for a sharper, sunset-over-water effect. Pink and blue are neighbors on the wheel by comparison, so they blend gently and never fight each other. That calm quality is the reason this gradient suits backgrounds so well.
The colors behind these gradients
Pink Blue Gradient: questions people ask
What colors make a pink blue gradient?
The simplest version uses pink #FF9ECD and sky blue #5BC0FF. Adding lavender #C3A6FF between them gives a smoother, more natural blend that passes through violet instead of a flat gray-blue.
What is the CSS code for a pink to blue gradient?
Use background: linear-gradient(135deg, #FF9ECD, #C3A6FF, #5BC0FF); on any element. Swap the angle or the stop order to change the direction, or use radial-gradient or conic-gradient for other shapes.
Can I use white text on a pink and blue gradient?
Not on pastel versions. White on #FF9ECD, #C3A6FF and #5BC0FF scores roughly 1.9:1 to 2.1:1, far below the 4.5:1 WCAG AA target. Use a dark ink such as #36393E, or darken the gradient first.
What angle looks best for a pink blue gradient?
135 degrees is the safe default because the fade runs diagonally from top left to bottom right and feels natural on wide screens. Use 180 degrees for a sky effect and 90 degrees for banners and buttons.
Does pink and blue make purple?
In paint, mixing pink and blue gives a muted purple or lavender. In a gradient, the colors pass through violet tones near the middle, which is why a lavender stop like #C3A6FF fits so well.