Named gradient · WebGradients

Magic Ray

Magic Ray is a pink gradient from WebGradients (MIT) — #ff3cac → #562b7c → #2b86c5 at 135°. 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 3.23:1 · AA large
white 3.23 AA largeblack 2.03 failsbanding medium

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.

sRGB63%
OKLab60%
OKLCH68%

Report

  • white ink: worst 3.23:1 at 0% (AA-large only); black ink: worst 2.03:1 at 52% (fails AA) → use white text.
  • Body text fails AA everywhere on this gradient; large text (≥24px / 19px bold) is fine. Add a scrim or lower the chroma for body copy.
  • Banding medium: ~8px bands at 1440px — add grain 15 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #ff3cac 0%, #f23da9 3.71%, #e53da5 7.43%, #d93da2 11.14%, #cc3d9f 14.86%, #c03c9c 18.57%, #b33b98 22.29%, #a73a95 26%, #9b3991 29.71%, #8f378e 33.43%, #84358a 37.14%, #783387 40.86%, #6d3183 44.57%, #612e80 48.29%, #562b7c 52%, #563281 55.43%, #563986 58.86%, #55408b 62.29%, #554690 65.71%, #534d95 69.14%, #52539b 72.57%, #505aa0 76%, #4d60a5 79.43%, #4a66aa 82.86%, #476db0 86.29%, #4273b5 89.71%, #3c79ba 93.14%, #3580c0 96.57%, #2b86c5 100%);
  background-image: linear-gradient(135deg in oklab, #ff3cac 0%, #562b7c 52%, #2b86c5 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#ff3cac] via-[#562b7c] via-52% to-[#2b86c5]
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="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#ff3cac"/><stop offset="3.71%" stop-color="#f23da9"/><stop offset="7.43%" stop-color="#e53da5"/><stop offset="11.14%" stop-color="#d93da2"/><stop offset="14.86%" stop-color="#cc3d9f"/><stop offset="18.57%" stop-color="#c03c9c"/><stop offset="22.29%" stop-color="#b33b98"/><stop offset="26%" stop-color="#a73a95"/><stop offset="29.71%" stop-color="#9b3991"/><stop offset="33.43%" stop-color="#8f378e"/><stop offset="37.14%" stop-color="#84358a"/><stop offset="40.86%" stop-color="#783387"/><stop offset="44.57%" stop-color="#6d3183"/><stop offset="48.29%" stop-color="#612e80"/><stop offset="52%" stop-color="#562b7c"/><stop offset="55.43%" stop-color="#563281"/><stop offset="58.86%" stop-color="#563986"/><stop offset="62.29%" stop-color="#55408b"/><stop offset="65.71%" stop-color="#554690"/><stop offset="69.14%" stop-color="#534d95"/><stop offset="72.57%" stop-color="#52539b"/><stop offset="76%" stop-color="#505aa0"/><stop offset="79.43%" stop-color="#4d60a5"/><stop offset="82.86%" stop-color="#4a66aa"/><stop offset="86.29%" stop-color="#476db0"/><stop offset="89.71%" stop-color="#4273b5"/><stop offset="93.14%" stop-color="#3c79ba"/><stop offset="96.57%" stop-color="#3580c0"/><stop offset="100%" stop-color="#2b86c5"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "magic-ray": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0.235,
            0.675
          ],
          "hex": "#ff3cac"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.337,
            0.169,
            0.486
          ],
          "hex": "#562b7c"
        },
        "position": 0.52
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.169,
            0.525,
            0.773
          ],
          "hex": "#2b86c5"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #ff3cac 0%, #562b7c 52%, #2b86c5 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "Magic Ray",
        "contrast": {
          "white": {
            "ratio": 3.234,
            "at": 0,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.032,
            "at": 0.52,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Magic Ray (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More pink 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 Magic Ray gradient (#ff3cac, #562b7c, #2b86c5), 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