Named gradient · WebGradients

Spiky Naga

Spiky Naga is a blue gradient from WebGradients (MIT) — #505285 → #585e92 → #65689f 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 5.21:1 · AA
white 5.21 AAblack 2.89 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.

sRGB97%
OKLab98%
OKLCH98%

Report

  • white ink: worst 5.21:1 at 25% (AA); black ink: worst 2.89:1 at 0% (fails AA) → use white text.
  • Banding high: ~14px bands at 1440px — add grain 30 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(0deg, #505285 0%, #515386 0.86%, #515487 1.71%, #525588 2.57%, #525589 3.43%, #53568a 4.29%, #53578b 5.14%, #54588b 6%, #55598c 6.86%, #555a8d 7.71%, #565b8e 8.57%, #565b8f 9.43%, #575c90 10.29%, #575d91 11.14%, #585e92 12%, #595f93 12.93%, #5a5f94 13.86%, #5b6095 14.79%, #5c6196 15.71%, #5d6297 16.64%, #5e6298 17.57%, #5e6398 18.5%, #5f6499 19.43%, #60649a 20.36%, #61659b 21.29%, #62669c 22.21%, #63679d 23.14%, #64679e 24.07%, #65689f 25%);
  background-image: linear-gradient(0deg in oklab, #505285 0%, #585e92 12%, #65689f 25%);
}
tailwind v4
bg-linear-to-t/oklab from-[#505285] via-[#585e92] via-12% to-[#65689f] to-25%
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="#505285"/><stop offset="0.86%" stop-color="#515386"/><stop offset="1.71%" stop-color="#515487"/><stop offset="2.57%" stop-color="#525588"/><stop offset="3.43%" stop-color="#525589"/><stop offset="4.29%" stop-color="#53568a"/><stop offset="5.14%" stop-color="#53578b"/><stop offset="6%" stop-color="#54588b"/><stop offset="6.86%" stop-color="#55598c"/><stop offset="7.71%" stop-color="#555a8d"/><stop offset="8.57%" stop-color="#565b8e"/><stop offset="9.43%" stop-color="#565b8f"/><stop offset="10.29%" stop-color="#575c90"/><stop offset="11.14%" stop-color="#575d91"/><stop offset="12%" stop-color="#585e92"/><stop offset="12.93%" stop-color="#595f93"/><stop offset="13.86%" stop-color="#5a5f94"/><stop offset="14.79%" stop-color="#5b6095"/><stop offset="15.71%" stop-color="#5c6196"/><stop offset="16.64%" stop-color="#5d6297"/><stop offset="17.57%" stop-color="#5e6298"/><stop offset="18.5%" stop-color="#5e6398"/><stop offset="19.43%" stop-color="#5f6499"/><stop offset="20.36%" stop-color="#60649a"/><stop offset="21.29%" stop-color="#61659b"/><stop offset="22.21%" stop-color="#62669c"/><stop offset="23.14%" stop-color="#63679d"/><stop offset="24.07%" stop-color="#64679e"/><stop offset="25%" stop-color="#65689f"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "spiky-naga": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.314,
            0.322,
            0.522
          ],
          "hex": "#505285"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.345,
            0.369,
            0.573
          ],
          "hex": "#585e92"
        },
        "position": 0.12
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.396,
            0.408,
            0.624
          ],
          "hex": "#65689f"
        },
        "position": 0.25
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #505285 0%, #585e92 12%, #65689f 25%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Spiky Naga",
        "contrast": {
          "white": {
            "ratio": 5.206,
            "at": 0.25,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.887,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Spiky Naga (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More blue 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 Spiky Naga gradient (#505285, #585e92, #65689f), 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