Named gradient · WebGradients

Plum Bath

Plum Bath is a purple gradient from WebGradients (MIT) — #cc208e → #6713d2 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
white text · worst 5.04:1 · AA
white 5.04 AAblack 2.60 failsbanding 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.

sRGB94%
OKLab88%
OKLCH95%

Report

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

Export

css
.gradient {
  background-image: linear-gradient(0deg, #cc208e 0%, #c42593 7.14%, #bd2899 14.29%, #b52b9e 21.43%, #ae2da3 28.57%, #a62ea8 35.71%, #9f2ead 42.86%, #982db2 50%, #902db6 57.14%, #892bbb 64.29%, #8229c0 71.43%, #7b25c4 78.57%, #7421c9 85.71%, #6e1bcd 92.86%, #6713d2 100%);
  background-image: linear-gradient(0deg in oklab, #cc208e 0%, #6713d2 100%);
}
tailwind v4
bg-linear-to-t/oklab from-[#cc208e] to-[#6713d2]
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="#cc208e"/><stop offset="7.14%" stop-color="#c42593"/><stop offset="14.29%" stop-color="#bd2899"/><stop offset="21.43%" stop-color="#b52b9e"/><stop offset="28.57%" stop-color="#ae2da3"/><stop offset="35.71%" stop-color="#a62ea8"/><stop offset="42.86%" stop-color="#9f2ead"/><stop offset="50%" stop-color="#982db2"/><stop offset="57.14%" stop-color="#902db6"/><stop offset="64.29%" stop-color="#892bbb"/><stop offset="71.43%" stop-color="#8229c0"/><stop offset="78.57%" stop-color="#7b25c4"/><stop offset="85.71%" stop-color="#7421c9"/><stop offset="92.86%" stop-color="#6e1bcd"/><stop offset="100%" stop-color="#6713d2"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "plum-bath": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.8,
            0.125,
            0.557
          ],
          "hex": "#cc208e"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.404,
            0.075,
            0.824
          ],
          "hex": "#6713d2"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #cc208e 0%, #6713d2 100%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Plum Bath",
        "contrast": {
          "white": {
            "ratio": 5.042,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.6,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Plum Bath (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 Plum Bath gradient (#cc208e, #6713d2), 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