Named gradient · WebGradients

Le Cocktail

Le Cocktail is a red gradient from WebGradients (MIT) — #874da2 → #c43a30 at 45°. 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.25:1 · AA
white 5.25 AAblack 3.61 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.

sRGB81%
OKLab77%
OKLCH89%

Report

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

Export

css
.gradient {
  background-image: linear-gradient(45deg, #874da2 0%, #8b4d9b 7.14%, #904d94 14.29%, #944d8d 21.43%, #984d86 28.57%, #9d4c7f 35.71%, #a14b78 42.86%, #a54a70 50%, #aa4969 57.14%, #ae4761 64.29%, #b34558 71.43%, #b74350 78.57%, #bb4146 85.71%, #c03e3c 92.86%, #c43a30 100%);
  background-image: linear-gradient(45deg in oklab, #874da2 0%, #c43a30 100%);
}
tailwind v4
bg-linear-to-tr/oklab from-[#874da2] to-[#c43a30]
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="210" y1="810" x2="1230" y2="-210"><stop offset="0%" stop-color="#874da2"/><stop offset="7.14%" stop-color="#8b4d9b"/><stop offset="14.29%" stop-color="#904d94"/><stop offset="21.43%" stop-color="#944d8d"/><stop offset="28.57%" stop-color="#984d86"/><stop offset="35.71%" stop-color="#9d4c7f"/><stop offset="42.86%" stop-color="#a14b78"/><stop offset="50%" stop-color="#a54a70"/><stop offset="57.14%" stop-color="#aa4969"/><stop offset="64.29%" stop-color="#ae4761"/><stop offset="71.43%" stop-color="#b34558"/><stop offset="78.57%" stop-color="#b74350"/><stop offset="85.71%" stop-color="#bb4146"/><stop offset="92.86%" stop-color="#c03e3c"/><stop offset="100%" stop-color="#c43a30"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "le-cocktail": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.529,
            0.302,
            0.635
          ],
          "hex": "#874da2"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.769,
            0.227,
            0.188
          ],
          "hex": "#c43a30"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(45deg in oklab, #874da2 0%, #c43a30 100%)",
        "interpolation": "oklab",
        "angle": 45,
        "name": "Le Cocktail",
        "contrast": {
          "white": {
            "ratio": 5.254,
            "at": 0.9973,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 3.606,
            "at": 0.0083,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Le Cocktail (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More red 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 Le Cocktail gradient (#874da2, #c43a30), 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