Named gradient · uiGradients

Deep Purple

Deep Purple is a purple gradient from uiGradients (MIT) — #673ab7 → #512da8 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.

Aa — the quick brown fox
white text · worst 7.33:1 · AA
white 7.33 AAblack 2.29 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.

sRGB99%
OKLab99%
OKLCH99%

Report

  • white ink: worst 7.33:1 at 0% (AA); black ink: worst 2.29:1 at 98% (fails AA) → use white text.
  • Banding high: ~65px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #673ab7 0%, #6539b6 7.14%, #6438b5 14.29%, #6237b4 21.43%, #6136b3 28.57%, #5f35b2 35.71%, #5d35b1 42.86%, #5c34af 50%, #5a33ae 57.14%, #5932ad 64.29%, #5731ac 71.43%, #5630ab 78.57%, #542faa 85.71%, #532ea9 92.86%, #512da8 100%);
  background-image: linear-gradient(90deg in oklab, #673ab7 0%, #512da8 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#673ab7] to-[#512da8]
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="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#673ab7"/><stop offset="7.14%" stop-color="#6539b6"/><stop offset="14.29%" stop-color="#6438b5"/><stop offset="21.43%" stop-color="#6237b4"/><stop offset="28.57%" stop-color="#6136b3"/><stop offset="35.71%" stop-color="#5f35b2"/><stop offset="42.86%" stop-color="#5d35b1"/><stop offset="50%" stop-color="#5c34af"/><stop offset="57.14%" stop-color="#5a33ae"/><stop offset="64.29%" stop-color="#5932ad"/><stop offset="71.43%" stop-color="#5731ac"/><stop offset="78.57%" stop-color="#5630ab"/><stop offset="85.71%" stop-color="#542faa"/><stop offset="92.86%" stop-color="#532ea9"/><stop offset="100%" stop-color="#512da8"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "deep-purple": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.404,
            0.227,
            0.718
          ],
          "hex": "#673ab7"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.318,
            0.176,
            0.659
          ],
          "hex": "#512da8"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #673ab7 0%, #512da8 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Deep Purple",
        "contrast": {
          "white": {
            "ratio": 7.328,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.291,
            "at": 0.9841,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Deep Purple (uiGradients, 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 Deep Purple gradient (#673ab7, #512da8), 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