Named gradient · WebGradients
Saint Petersburg
Saint Petersburg is a blue gradient from WebGradients (MIT) — #f5f7fa → #c3cfe2 at 135°. 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 1.07:1 at 0% (fails AA); black ink: worst 13.34:1 at 100% (AA) → use black text.
- Banding high: ~29px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(135deg, #f5f7fa 0%, #f1f4f8 7.14%, #eef1f7 14.29%, #eaeef5 21.43%, #e7ebf3 28.57%, #e3e9f1 35.71%, #dfe6f0 42.86%, #dce3ee 50%, #d8e0ec 57.14%, #d5ddeb 64.29%, #d1dae9 71.43%, #ced7e7 78.57%, #cad5e5 85.71%, #c7d2e4 92.86%, #c3cfe2 100%);
background-image: linear-gradient(135deg in oklab, #f5f7fa 0%, #c3cfe2 100%);
}bg-linear-to-br/oklab from-[#f5f7fa] to-[#c3cfe2]
<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="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#f5f7fa"/><stop offset="7.14%" stop-color="#f1f4f8"/><stop offset="14.29%" stop-color="#eef1f7"/><stop offset="21.43%" stop-color="#eaeef5"/><stop offset="28.57%" stop-color="#e7ebf3"/><stop offset="35.71%" stop-color="#e3e9f1"/><stop offset="42.86%" stop-color="#dfe6f0"/><stop offset="50%" stop-color="#dce3ee"/><stop offset="57.14%" stop-color="#d8e0ec"/><stop offset="64.29%" stop-color="#d5ddeb"/><stop offset="71.43%" stop-color="#d1dae9"/><stop offset="78.57%" stop-color="#ced7e7"/><stop offset="85.71%" stop-color="#cad5e5"/><stop offset="92.86%" stop-color="#c7d2e4"/><stop offset="100%" stop-color="#c3cfe2"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"saint-petersburg": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.961,
0.969,
0.98
],
"hex": "#f5f7fa"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.765,
0.812,
0.886
],
"hex": "#c3cfe2"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(135deg in oklab, #f5f7fa 0%, #c3cfe2 100%)",
"interpolation": "oklab",
"angle": 135,
"name": "Saint Petersburg",
"contrast": {
"white": {
"ratio": 1.073,
"at": 0,
"passesAA": false,
"passesAALarge": false
},
"black": {
"ratio": 13.344,
"at": 1,
"passesAA": true,
"passesAALarge": true
},
"suggestedInk": "#000000"
}
}
},
"$description": "Saint Petersburg (WebGradients, MIT), rendered in OKLab."
}
}Tagged
More blue 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 Saint Petersburg gradient (#f5f7fa, #c3cfe2), 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