Named gradient · uiGradients
Farhan
Farhan is a purple gradient from uiGradients (MIT) — #9400d3 → #4b0082 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 6.56:1 at 0% (AA); black ink: worst 1.62:1 at 100% (fails AA) → use white text.
- Banding high: ~18px bands at 1440px — add grain 36 (≈2% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(90deg, #9400d3 0%, #8f00cd 7.14%, #8900c7 14.29%, #8401c1 21.43%, #7e01bb 28.57%, #7901b5 35.71%, #7401af 42.86%, #6e01aa 50%, #6901a4 57.14%, #64019e 64.29%, #5f0198 71.43%, #5a0193 78.57%, #55008d 85.71%, #500088 92.86%, #4b0082 100%);
background-image: linear-gradient(90deg in oklab, #9400d3 0%, #4b0082 100%);
}bg-linear-to-r/oklab from-[#9400d3] to-[#4b0082]
<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="#9400d3"/><stop offset="7.14%" stop-color="#8f00cd"/><stop offset="14.29%" stop-color="#8900c7"/><stop offset="21.43%" stop-color="#8401c1"/><stop offset="28.57%" stop-color="#7e01bb"/><stop offset="35.71%" stop-color="#7901b5"/><stop offset="42.86%" stop-color="#7401af"/><stop offset="50%" stop-color="#6e01aa"/><stop offset="57.14%" stop-color="#6901a4"/><stop offset="64.29%" stop-color="#64019e"/><stop offset="71.43%" stop-color="#5f0198"/><stop offset="78.57%" stop-color="#5a0193"/><stop offset="85.71%" stop-color="#55008d"/><stop offset="92.86%" stop-color="#500088"/><stop offset="100%" stop-color="#4b0082"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"farhan": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.58,
0,
0.827
],
"hex": "#9400d3"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.294,
0,
0.51
],
"hex": "#4b0082"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(90deg in oklab, #9400d3 0%, #4b0082 100%)",
"interpolation": "oklab",
"angle": 90,
"name": "Farhan",
"contrast": {
"white": {
"ratio": 6.563,
"at": 0,
"passesAA": true,
"passesAALarge": true
},
"black": {
"ratio": 1.622,
"at": 1,
"passesAA": false,
"passesAALarge": false
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "Farhan (uiGradients, 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 Farhan gradient (#9400d3, #4b0082), 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