Pastel Lavender to Young at Heart Gradient
CSS
background: linear-gradient(90deg, #d8a1c4 0%, #d5a1a9 100%);
From Pastel Lavender (#D8A1C4) to Young at Heart (#D5A1A9). The two hues are 29° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Pastel Lavender | #D8A1C4 | 216, 161, 196 | 322°, 41%, 74% | 0, 25, 9, 15 | |
| 25% (near Pastel Lavender) | #D7A1BD | 215, 161, 189 | 329°, 40%, 74% | 0, 25, 12, 16 | |
| 50% (near Sweet Perfume) | #D7A1B7 | 215, 161, 183 | 336°, 40%, 74% | 0, 25, 15, 16 | |
| 75% (near Young at Heart) | #D6A1B0 | 214, 161, 176 | 343°, 39%, 74% | 0, 25, 18, 16 | |
| Young at Heart | #D5A1A9 | 213, 161, 169 | 351°, 38%, 73% | 0, 24, 21, 16 |
Halfway along, the gradient is #D7A1B7, closest to the named color Sweet Perfume. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.03:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #d8a1c4, #d5a1a9) - Diagonal:
linear-gradient(135deg, #d8a1c4, #d5a1a9) - Radial, from the center out:
radial-gradient(circle, #d8a1c4, #d5a1a9) - Tailwind CSS:
bg-gradient-to-r from-[#d8a1c4] to-[#d5a1a9]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the Pastel Lavender to Young at Heart gradient?
It starts at #D8A1C4 (Pastel Lavender) and ends at #D5A1A9 (Young at Heart), with #D7A1B7 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #d8a1c4, #d5a1a9) runs from Young at Heart on the left to Pastel Lavender on the right.