Named gradient · WebGradients
Midnight Bloom
Midnight Bloom is a purple gradient from WebGradients (MIT) — #2b5876 → #4e4376 at 340°. Shown here interpolated in OKLab, next to the original sRGB, with the worst-case contrast for white and black text and every export.
Same stops, three spaces
The source renders this in sRGB. The number is how much chroma survives at the dullest point along the line — the difference between the first bar and the others is the grey that OKLab removes.
Report
- white ink: worst 7.60:1 at 2% (AA); black ink: worst 2.39:1 at 98% (fails AA) → use white text.
- Banding high: ~41px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(340deg, #2b5876 0%, #2f5776 7.14%, #325576 14.29%, #355476 21.43%, #385276 28.57%, #3b5176 35.71%, #3e4f76 42.86%, #404e76 50%, #424c76 57.14%, #444b76 64.29%, #464976 71.43%, #484876 78.57%, #4a4676 85.71%, #4c4576 92.86%, #4e4376 100%);
background-image: linear-gradient(340deg in oklab, #2b5876 0%, #4e4376 100%);
}bg-linear-340/oklab from-[#2b5876] to-[#4e4376]
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="600" viewBox="0 0 1440 600"><defs><linearGradient id="bs-gradient" gradientUnits="userSpaceOnUse" x1="900.6421" y1="796.3102" x2="539.3579" y2="-196.3102"><stop offset="0%" stop-color="#2b5876"/><stop offset="7.14%" stop-color="#2f5776"/><stop offset="14.29%" stop-color="#325576"/><stop offset="21.43%" stop-color="#355476"/><stop offset="28.57%" stop-color="#385276"/><stop offset="35.71%" stop-color="#3b5176"/><stop offset="42.86%" stop-color="#3e4f76"/><stop offset="50%" stop-color="#404e76"/><stop offset="57.14%" stop-color="#424c76"/><stop offset="64.29%" stop-color="#444b76"/><stop offset="71.43%" stop-color="#464976"/><stop offset="78.57%" stop-color="#484876"/><stop offset="85.71%" stop-color="#4a4676"/><stop offset="92.86%" stop-color="#4c4576"/><stop offset="100%" stop-color="#4e4376"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"midnight-bloom": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.169,
0.345,
0.463
],
"hex": "#2b5876"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.306,
0.263,
0.463
],
"hex": "#4e4376"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(340deg in oklab, #2b5876 0%, #4e4376 100%)",
"interpolation": "oklab",
"angle": 340,
"name": "Midnight Bloom",
"contrast": {
"white": {
"ratio": 7.596,
"at": 0.0159,
"passesAA": true,
"passesAALarge": true
},
"black": {
"ratio": 2.388,
"at": 0.9841,
"passesAA": false,
"passesAALarge": false
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "Midnight Bloom (WebGradients, MIT), rendered in OKLab."
}
}Tagged
More purple gradients
Point any MCP client at the shared gradients endpoint and your agent gets the same engine as this page — make_gradient returns CSS with the interpolation space, Tailwind v4, SVG, a PNG URL, a DTCG token and the contrast report in one call; brand_gradients derives the whole contact sheet from a brand or a palette. Read-only, no key. Every gradient is a /gradients/new/… link: open it, refine, paste it back.
https://mcp.brandsweets.com/gradients/mcpclaude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
›take the Midnight Bloom gradient (#2b5876, #4e4376), re-interpolate it in oklch, and tell me the worst-case contrast for white text
Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.
Machine-readable: gradients.md · From WebGradients (MIT) — licences