Named gradient · WebGradients

Mars Party

Mars Party is a purple gradient from WebGradients (MIT) — #5f72bd → #9b23ea 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 4.53:1 · AA
white 4.53 AAblack 3.82 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.

sRGB61%
OKLab61%
OKLCH61%

Report

  • white ink: worst 4.53:1 at 1% (AA); black ink: worst 3.82:1 at 100% (AA-large only) → use white text.
  • Banding high: ~18px bands at 1440px — add grain 37 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(0deg, #5f72bd 0%, #656fc0 7.14%, #6a6bc4 14.29%, #6f67c7 21.43%, #7464ca 28.57%, #785fcd 35.71%, #7d5bd1 42.86%, #8156d4 50%, #8551d7 57.14%, #894cda 64.29%, #8d46dd 71.43%, #913fe1 78.57%, #9438e4 85.71%, #982fe7 92.86%, #9b23ea 100%);
  background-image: linear-gradient(0deg in oklab, #5f72bd 0%, #9b23ea 100%);
}
tailwind v4
bg-linear-to-t/oklab from-[#5f72bd] to-[#9b23ea]
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="#5f72bd"/><stop offset="7.14%" stop-color="#656fc0"/><stop offset="14.29%" stop-color="#6a6bc4"/><stop offset="21.43%" stop-color="#6f67c7"/><stop offset="28.57%" stop-color="#7464ca"/><stop offset="35.71%" stop-color="#785fcd"/><stop offset="42.86%" stop-color="#7d5bd1"/><stop offset="50%" stop-color="#8156d4"/><stop offset="57.14%" stop-color="#8551d7"/><stop offset="64.29%" stop-color="#894cda"/><stop offset="71.43%" stop-color="#8d46dd"/><stop offset="78.57%" stop-color="#913fe1"/><stop offset="85.71%" stop-color="#9438e4"/><stop offset="92.86%" stop-color="#982fe7"/><stop offset="100%" stop-color="#9b23ea"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "mars-party": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.373,
            0.447,
            0.741
          ],
          "hex": "#5f72bd"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.608,
            0.137,
            0.918
          ],
          "hex": "#9b23ea"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #5f72bd 0%, #9b23ea 100%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Mars Party",
        "contrast": {
          "white": {
            "ratio": 4.527,
            "at": 0.0108,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 3.822,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Mars Party (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 Mars Party gradient (#5f72bd, #9b23ea), 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