#121212
#3B1E6E
#F037A5
Spotify Wrapped Midnight-Inspired Gradient is a dark and bold 3-colour linear gradient that runs from near-black (#121212) through deep purple (#3B1E6E) to pink (#F037A5) at 160°. It is inspired by Spotify’s brand colours, a reference point for tech interfaces. White text reads best on it, at a contrast ratio of 10.4:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by Spotify’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Spotify. Spotify is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Spotify’s. Terms
background: linear-gradient(160deg, #121212, #3B1E6E, #F037A5);
bg-[linear-gradient(160deg,#121212,#3B1E6E,#F037A5)]
{
"spotify-wrapped-midnight-inspired": {
"value": "linear-gradient(160deg, #121212 0%, #3B1E6E 50%, #F037A5 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let spotifyWrappedMidnightInspiredGradient = LinearGradient(
colors: [
Color(red: 0.071, green: 0.071, blue: 0.071),
Color(red: 0.231, green: 0.118, blue: 0.431),
Color(red: 0.941, green: 0.216, blue: 0.647)
],
startPoint: UnitPoint(x: 0.318, y: 0),
endPoint: UnitPoint(x: 0.682, y: 1)
)
// Usage
Rectangle().fill(spotifyWrappedMidnightInspiredGradient)val spotifyWrappedMidnightInspiredColors = listOf(Color(0xFF121212), Color(0xFF3B1E6E), Color(0xFFF037A5))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = spotifyWrappedMidnightInspiredColors,
start = Offset(size.width * 0.318f, size.height * 0f),
end = Offset(size.width * 0.682f, size.height * 1f)
)
)
}<!-- res/drawable/spotify-wrapped-midnight-inspired_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#121212"
android:centerColor="#3B1E6E"
android:endColor="#F037A5"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 160deg in CSS is 290°, rounded to 270°. -->const spotifyWrappedMidnightInspiredGradient = LinearGradient(
begin: Alignment(-0.364, -1),
end: Alignment(0.364, 1),
colors: [Color(0xFF121212), Color(0xFF3B1E6E), Color(0xFFF037A5)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: spotifyWrappedMidnightInspiredGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#121212', '#3B1E6E', '#F037A5']}
start={{ x: 0.318, y: 0 }}
end={{ x: 0.682, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="spotify-wrapped-midnight-inspired" x1="0.318" y1="0" x2="0.682" y2="1">
<stop offset="0%" stop-color="#121212" />
<stop offset="50%" stop-color="#3B1E6E" />
<stop offset="100%" stop-color="#F037A5" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#spotify-wrapped-midnight-inspired)" />
</svg>:root {
--spotify-wrapped-midnight-inspired-1: #121212;
--spotify-wrapped-midnight-inspired-2: #3B1E6E;
--spotify-wrapped-midnight-inspired-3: #F037A5;
--spotify-wrapped-midnight-inspired-angle: 160deg;
--spotify-wrapped-midnight-inspired: linear-gradient(var(--spotify-wrapped-midnight-inspired-angle), var(--spotify-wrapped-midnight-inspired-1), var(--spotify-wrapped-midnight-inspired-2), var(--spotify-wrapped-midnight-inspired-3));
}
.hero {
background: var(--spotify-wrapped-midnight-inspired);
}$spotify-wrapped-midnight-inspired-1: #121212;
$spotify-wrapped-midnight-inspired-2: #3B1E6E;
$spotify-wrapped-midnight-inspired-3: #F037A5;
$spotify-wrapped-midnight-inspired: linear-gradient(160deg, $spotify-wrapped-midnight-inspired-1, $spotify-wrapped-midnight-inspired-2, $spotify-wrapped-midnight-inspired-3);
@mixin spotify-wrapped-midnight-inspired-bg {
background: $spotify-wrapped-midnight-inspired-1;
background: $spotify-wrapped-midnight-inspired;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #121212 | rgb(18, 18, 18) | hsl(0, 0%, 7%) |
| 2 | Deep purple | #3B1E6E | rgb(59, 30, 110) | hsl(262, 57%, 27%) |
| 3 | Pink | #F037A5 | rgb(240, 55, 165) | hsl(324, 86%, 58%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Spotify Wrapped Midnight-Inspired Gradient uses 3 colours: #121212, #3B1E6E and #F037A5, at an angle of 160°.
Paste background: linear-gradient(160deg, #121212, #3B1E6E, #F037A5); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 10.4:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.