Palette maker

Pink to Black Gradient: Colors, Hex Codes and CSS

The classic pink to black gradient fades from hot pink to pure black , and a dark raspberry stop at in the middle keeps the blend rich instead of dull. The CSS is background: linear-gradient(160deg, #FF69B4, #7A1F4D, #000000);.

Type
160°
 

More pink to black gradients to try

On this page
  1. Color codes
  2. What Hot Pink, Raspberry and Black Look Like Together
  3. CSS code
  4. Muddy middle
  5. Contrast
  6. Palettes
  7. Using Pink to Black in Websites and Apps
  8. Branding, Fashion and Interior Ideas
  9. Printing
  10. Gradients to Try After Pink to Black
  11. FAQ

Use the gradient studio above to change the stops, angle and type, then copy the CSS. The rest of this page covers why these three colors work together, how to avoid a flat middle, what the contrast numbers are, and how the gradient behaves on screen, on paper and on fabric.

Pink to Black Gradient Color Codes: HEX, RGB, HSL, CMYK

Here are the three stops in every format you are likely to need. I added the straight 50% mix of hot pink and black as a fourth row, because it shows what a plain two-stop gradient gives you at the halfway point.

Color HEX RGB HSL CMYK
Hot Pink 255, 105, 180 330°, 100%, 71% 0, 59, 29, 0
Dark Raspberry 122, 31, 77 330°, 60%, 30% 0, 75, 37, 52
Black 0, 0, 0 0°, 0%, 0% 0, 0, 0, 100
Straight 50% mix 128, 53, 90 330°, 41%, 35% 0, 59, 30, 50

Notice that all three colored rows share hue 330 in HSL. Only saturation and lightness change as you move toward black, which is why the blend looks so clean. The CMYK figures are simple mathematical conversions, so treat them as a starting point and read the printing section before you send files anywhere.

What Hot Pink, Raspberry and Black Look Like Together

Hot pink is bright, playful and slightly warm. It sits between the pale CSS pink and full magenta , and it is the same color the CSS name HotPink refers to. Dark raspberry is its serious cousin: a berry-wine shade that reads as pink in shadow rather than as red or purple.

Hot pink, dark raspberry and black shown as screen hex codes beside their CMYK ink amounts for print
On screen the colors are light; in print they are ink, and black uses only K.

Fading between them gives the look of a neon sign dimming into a night street. Compared with its neighbors, a pale pink to black fade feels softer and more romantic, magenta to black turns electric and slightly purple, and red to black feels heavier and more aggressive. If you want to explore the lighter end of the family first, the pink gradient page has the full range.

One hue, three jobs

Hot pink brings the energy, raspberry carries the mood, and black gives the eye somewhere to rest. Keep all three at hue 330 and the gradient stays cohesive.

CSS Code for a Pink to Black Gradient

Everything below works in current browsers. The angle sets the direction: 180deg runs top to bottom, 90deg runs left to right, 135deg runs corner to corner, and 160deg gives a gentle diagonal that feels less rigid than a straight fade.

Linear: the everyday choice

.hero {
  background: linear-gradient(160deg, #FF69B4 0%, #7A1F4D 50%, #000000 100%);
}

/* two-stop version */
.simple {
  background: linear-gradient(to bottom, #FF69B4, #000000);
}

Put the black end where your text or UI will sit. On a hero section, that usually means the bottom or the left edge.

Radial and conic variations

.glow {
  background: radial-gradient(circle at 30% 20%, #FF69B4 0%, #7A1F4D 45%, #000000 100%);
}

.loop {
  background: conic-gradient(from 200deg, #FF69B4, #7A1F4D, #000000, #7A1F4D, #FF69B4);
}

The radial version works like a spotlight, which suits buttons, cards and avatar backgrounds. The conic version repeats the first color at the end so the seam disappears.

Why the Middle Can Look Muddy, and How to Fix It

A straight blend from to passes through at 50%. That color has the same hue but only 41% saturation, against 100% at the start. Next to a vivid pink it can read as bruised or dusty. I hit this on an app onboarding screen: the first mockup looked tired in the center until I added a raspberry stop, and the client stopped asking why it felt flat.

What does adding a saturated stop like #7A1F4D in the middle do?

A straight mix of hot pink and black drops to 41% saturation at the halfway point, while the raspberry stop holds 60%.

Here are the fixes I reach for, in order:

  • Add a saturated mid stop such as somewhere between 40% and 55%.
  • Move the black stop later, for example #000000 90%, so the pink has more room.
  • Interpolate in a perceptual space: linear-gradient(in oklab 160deg, #FF69B4, #000000).
  • Lay a faint noise texture over dark areas to hide banding.

Interpolating toward black in oklch is safe because black has no hue of its own, so the pink hue carries through. If you want a neutral, smoky version instead, compare it with the black to grey gradient.

Contrast and Readable Text on Pink and Black

I calculated these ratios with the WCAG formula. WCAG AA asks for 4.5:1 for normal text and 3:1 for large text and interface components, and AAA asks for 7:1 for normal text. Black text on scores 7.9:1, so it passes AAA, while white text on the same pink scores only 2.6:1 and fails.

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

Black on #FF69B4 measures 7.9:1, while white only reaches 2.6:1.

On the dark side, white on reaches 9.9:1 and white on the midpoint reaches 8.2:1. Black text on raspberry fails at 2.1:1. Hot pink on black is 7.9:1, so pink links and headings on a black end work well, but hot pink on raspberry is just 3.7:1, which only suits large text or icons.

I once fixed a landing page where a white headline crossed the hot pink end of the gradient. The designers loved the placement, but the headline was nearly invisible on some monitors. A dark scrim behind the text solved it without changing the artwork:

.hero-text {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    linear-gradient(160deg, #FF69B4, #7A1F4D, #000000);
}

Always test the scrim version with a checker, because the result depends on where the text lands.

Pink to Black Palettes You Can Copy

Each palette below steps through pink, berry and near-black, so you can use the swatches as UI tokens, slide colors or print inks. Pick one, then rebuild the gradient from its first, middle and last colors.

Raspberry Night

Landing page heroes, app splash screens and dark mode accents.

Bubblegum Ink

Soft to deep steps for packaging, social posts and stickers.

Neon Lounge

Nightlife posters, gaming interfaces and music event graphics with a cyan spark.

Dusty Rose Charcoal

Muted editorial layouts, fashion lookbooks and quiet beauty branding.

The pale and dusty options make good companions to the pink blue gradient if you want to shift the mood toward dusk. Neon Lounge carries a cyan accent for moments when pink alone starts to feel one-note.

Using Pink to Black in Websites and Apps

Pink to black is bold, so give it a job. It works best as a large, simple background with plenty of quiet space for content, rather than as decoration on every surface. Here are the placements that hold up well:

  • Hero sections with white text on the dark half.
  • Dark mode cards with a thin pink gradient border.
  • Photo overlays that fade a picture into black under a caption.
  • Progress bars and story rings that move from pink to raspberry.
  • Gradient text using background-clip: text, kept to short headings only.

For dark interfaces, the black gradient guide covers surface layering, which pairs well with a single pink accent.

Try this: Copy the three-stop CSS into a dark hero section, then slide the middle stop between 35% and 65% in the studio. Stop where the pink still feels alive but the black still anchors the corner, and note that percentage for your project.

Four Aa text samples on pink, raspberry and black backgrounds with contrast ratios and AA pass or fail marks
On a pink to black hero, light text on the dark end passes, but white on pink fails.

Branding, Fashion and Interior Ideas

Pink and black signals nightlife, beauty, music and streetwear. The K-pop group BLACKPINK built a whole visual identity on the pairing, and gradients let a brand use it with more depth than flat color blocks. For a brand system, I usually keep hot pink as the single accent and use the gradient only for hero moments, social covers and packaging inserts.

In fashion, the same idea appears as dip-dye and ombre, where fabric fades from hot pink into black along a hem or sleeve. In interiors, a painted ombre wall is difficult to do well, so most people get the effect with colored lighting: a pink LED strip washing over a dark wall mimics the fade. Soft lavender such as pastel purple can also bridge the two when you need a gentler transition for textiles or bedroom styling.

Printing Pink to Black Without Surprises

Screens mix light and print mixes ink, so the CMYK values in the table are only approximate. Pure converts to K 100 alone, which can print as a flat dark gray on large areas. Many printers recommend a rich black built from all four inks for big fills, so ask your printer for their preferred recipe.

I once had a proof where the last stretch of a pink to black fade collapsed into solid black, because dark tones fill in on press. Ending the fade at a very dark raspberry like instead of true black kept the gradient visible to the edge. Also remember that browsers usually strip background colors when printing a web page, so add this if the gradient matters:

@media print {
  .hero {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

Even with that rule, a test print is the only reliable check for how the pink will land.

Gradients to Try After Pink to Black

If you like the energy but want a warmer feel, the sunset gradient moves pink through orange and gold, while the pink to yellow gradient keeps the brightness and drops the darkness entirely. Both work well when black feels too heavy for a project.

The simplest rule I follow is this: keep the hue steady, control the saturation in the middle, and put text on the dark side. With those three habits, a pink to black gradient looks deliberate on screen and holds up in print.

The colors behind these gradients

Pink to Black Gradient: questions people ask

What is the CSS code for a pink to black gradient?

The simplest version is background: linear-gradient(to bottom, #FF69B4, #000000);. For a richer result use background: linear-gradient(160deg, #FF69B4, #7A1F4D, #000000);, which adds a dark raspberry stop in the middle.

What color is in the middle of a pink and black gradient?

A straight blend of hot pink and black passes through a dusky plum, about #80355A at the 50% mark. It has the same pink hue as the start but much lower saturation and lightness.

Which pink looks best fading into black?

Hot pink #FF69B4 and electric pinks like #FF2E93 give the strongest glow because they stay vivid against the dark end. Pale pinks such as #FFC0CB look softer and more romantic, but need more room before the black takes over.

Can I put white text on a pink to black gradient?

Yes, as long as the text sits on the dark half. White on #7A1F4D has a contrast ratio of 9.9:1, but white on #FF69B4 is only 2.6:1, so avoid placing it over the bright pink end.

Why does my pink to black gradient look banded or gray?

Dark gradients show visible steps on 8-bit screens because there are few distinct values near black. Adding a mid stop, interpolating in oklab or oklch, or laying a faint noise texture over the top usually smooths it out.

Keep exploring