Named gradient · WebGradients

Night Fade

Night Fade is a purple gradient from WebGradients (MIT) — #a18cd1 → #fbc2eb at 0°. Shown here interpolated in OKLab, next to the original sRGB, with the worst-case contrast for white and black text and every export.

Aa — the quick brown fox
black text · worst 7.19:1 · AA
white 1.50 failsblack 7.19 AAbanding high

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.

sRGB89%
OKLab89%
OKLCH90%

Report

  • white ink: worst 1.50:1 at 100% (fails AA); black ink: worst 7.19:1 at 0% (AA) → use black text.
  • Banding high: ~16px bands at 1440px — add grain 33 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(0deg, #a18cd1 0%, #a790d3 7.14%, #ad94d5 14.29%, #b498d7 21.43%, #ba9bd9 28.57%, #c09fdb 35.71%, #c7a3dd 42.86%, #cda7de 50%, #d4abe0 57.14%, #daafe2 64.29%, #e1b3e4 71.43%, #e7b6e6 78.57%, #eebae8 85.71%, #f4bee9 92.86%, #fbc2eb 100%);
  background-image: linear-gradient(0deg in oklab, #a18cd1 0%, #fbc2eb 100%);
}
tailwind v4
bg-linear-to-t/oklab from-[#a18cd1] to-[#fbc2eb]
svg
<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="720" y1="600" x2="720" y2="0"><stop offset="0%" stop-color="#a18cd1"/><stop offset="7.14%" stop-color="#a790d3"/><stop offset="14.29%" stop-color="#ad94d5"/><stop offset="21.43%" stop-color="#b498d7"/><stop offset="28.57%" stop-color="#ba9bd9"/><stop offset="35.71%" stop-color="#c09fdb"/><stop offset="42.86%" stop-color="#c7a3dd"/><stop offset="50%" stop-color="#cda7de"/><stop offset="57.14%" stop-color="#d4abe0"/><stop offset="64.29%" stop-color="#daafe2"/><stop offset="71.43%" stop-color="#e1b3e4"/><stop offset="78.57%" stop-color="#e7b6e6"/><stop offset="85.71%" stop-color="#eebae8"/><stop offset="92.86%" stop-color="#f4bee9"/><stop offset="100%" stop-color="#fbc2eb"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "night-fade": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.631,
            0.549,
            0.82
          ],
          "hex": "#a18cd1"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.984,
            0.761,
            0.922
          ],
          "hex": "#fbc2eb"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #a18cd1 0%, #fbc2eb 100%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Night Fade",
        "contrast": {
          "white": {
            "ratio": 1.498,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 7.187,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Night Fade (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More purple gradients

mcpConnect your agent to the gradient engine
live endpoint

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.

endpointhttps://mcp.brandsweets.com/gradients/mcp
claude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
try this prompt

take the Night Fade gradient (#a18cd1, #fbc2eb), 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