Named gradient · uiGradients

Amethyst

Amethyst is a purple gradient from uiGradients (MIT) — #9d50bb → #6e48aa 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 4.88:1 · AA
white 4.88 AAblack 3.17 AA largebanding 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.

sRGB93%
OKLab93%
OKLCH93%

Report

  • white ink: worst 4.88:1 at 0% (AA); black ink: worst 3.17:1 at 100% (AA-large only) → use white text.
  • Banding high: ~31px bands at 1440px — add grain 50 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #9d50bb 0%, #9a50ba 7.14%, #964fb9 14.29%, #934fb7 21.43%, #904eb6 28.57%, #8c4eb5 35.71%, #894db4 42.86%, #854cb3 50%, #824cb1 57.14%, #7f4bb0 64.29%, #7b4baf 71.43%, #784aae 78.57%, #7549ac 85.71%, #7149ab 92.86%, #6e48aa 100%);
  background-image: linear-gradient(90deg in oklab, #9d50bb 0%, #6e48aa 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#9d50bb] to-[#6e48aa]
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="#9d50bb"/><stop offset="7.14%" stop-color="#9a50ba"/><stop offset="14.29%" stop-color="#964fb9"/><stop offset="21.43%" stop-color="#934fb7"/><stop offset="28.57%" stop-color="#904eb6"/><stop offset="35.71%" stop-color="#8c4eb5"/><stop offset="42.86%" stop-color="#894db4"/><stop offset="50%" stop-color="#854cb3"/><stop offset="57.14%" stop-color="#824cb1"/><stop offset="64.29%" stop-color="#7f4bb0"/><stop offset="71.43%" stop-color="#7b4baf"/><stop offset="78.57%" stop-color="#784aae"/><stop offset="85.71%" stop-color="#7549ac"/><stop offset="92.86%" stop-color="#7149ab"/><stop offset="100%" stop-color="#6e48aa"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "amethyst": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.616,
            0.314,
            0.733
          ],
          "hex": "#9d50bb"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.431,
            0.282,
            0.667
          ],
          "hex": "#6e48aa"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #9d50bb 0%, #6e48aa 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Amethyst",
        "contrast": {
          "white": {
            "ratio": 4.885,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 3.17,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Amethyst (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 Amethyst gradient (#9d50bb, #6e48aa), 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