Named gradient · uiGradients
Midnight City
Midnight City is a neutral gradient from uiGradients (MIT) — #232526 → #414345 at 90°. 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 9.94:1 at 100% (AA); black ink: worst 1.36:1 at 0% (fails AA) → use white text.
- Banding high: ~46px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(90deg, #232526 0%, #252728 7.14%, #27292a 14.29%, #292b2c 21.43%, #2b2d2f 28.57%, #2d2f31 35.71%, #303233 42.86%, #323435 50%, #343637 57.14%, #36383a 64.29%, #383a3c 71.43%, #3a3c3e 78.57%, #3d3f40 85.71%, #3f4143 92.86%, #414345 100%);
background-image: linear-gradient(90deg in oklab, #232526 0%, #414345 100%);
}bg-linear-to-r/oklab from-[#232526] to-[#414345]
<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="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#232526"/><stop offset="7.14%" stop-color="#252728"/><stop offset="14.29%" stop-color="#27292a"/><stop offset="21.43%" stop-color="#292b2c"/><stop offset="28.57%" stop-color="#2b2d2f"/><stop offset="35.71%" stop-color="#2d2f31"/><stop offset="42.86%" stop-color="#303233"/><stop offset="50%" stop-color="#323435"/><stop offset="57.14%" stop-color="#343637"/><stop offset="64.29%" stop-color="#36383a"/><stop offset="71.43%" stop-color="#383a3c"/><stop offset="78.57%" stop-color="#3a3c3e"/><stop offset="85.71%" stop-color="#3d3f40"/><stop offset="92.86%" stop-color="#3f4143"/><stop offset="100%" stop-color="#414345"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"midnight-city": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.137,
0.145,
0.149
],
"hex": "#232526"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.255,
0.263,
0.271
],
"hex": "#414345"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(90deg in oklab, #232526 0%, #414345 100%)",
"interpolation": "oklab",
"angle": 90,
"name": "Midnight City",
"contrast": {
"white": {
"ratio": 9.936,
"at": 1,
"passesAA": true,
"passesAALarge": true
},
"black": {
"ratio": 1.364,
"at": 0,
"passesAA": false,
"passesAALarge": false
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "Midnight City (uiGradients, MIT), rendered in OKLab."
}
}Tagged
More neutral 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 City gradient (#232526, #414345), 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 uiGradients (MIT) — licences