Named gradient · WebGradients

Smiling Rain

Smiling Rain is a purple gradient from WebGradients (MIT) — #dcb0ed → #99c99c at 340°. 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
black text · worst 11.15:1 · AA
white 1.82 failsblack 11.15 AAbanding 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.

sRGB9%
OKLab9%
OKLCH91%

Report

  • white ink: worst 1.82:1 at 2% (fails AA); black ink: worst 11.15:1 at 97% (AA) → use black text.
  • Banding high: ~18px bands at 1440px — add grain 36 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(340deg, #dcb0ed 0%, #d8b2e8 7.14%, #d3b4e2 14.29%, #cfb7dc 21.43%, #cab9d7 28.57%, #c6bbd1 35.71%, #c1bccc 42.86%, #bdbec6 50%, #b8c0c0 57.14%, #b3c2ba 64.29%, #aec3b4 71.43%, #a9c5ae 78.57%, #a4c6a8 85.71%, #9ec8a2 92.86%, #99c99c 100%);
  background-image: linear-gradient(340deg in oklab, #dcb0ed 0%, #99c99c 100%);
}
tailwind v4
bg-linear-340/oklab from-[#dcb0ed] to-[#99c99c]
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="900.6421" y1="796.3102" x2="539.3579" y2="-196.3102"><stop offset="0%" stop-color="#dcb0ed"/><stop offset="7.14%" stop-color="#d8b2e8"/><stop offset="14.29%" stop-color="#d3b4e2"/><stop offset="21.43%" stop-color="#cfb7dc"/><stop offset="28.57%" stop-color="#cab9d7"/><stop offset="35.71%" stop-color="#c6bbd1"/><stop offset="42.86%" stop-color="#c1bccc"/><stop offset="50%" stop-color="#bdbec6"/><stop offset="57.14%" stop-color="#b8c0c0"/><stop offset="64.29%" stop-color="#b3c2ba"/><stop offset="71.43%" stop-color="#aec3b4"/><stop offset="78.57%" stop-color="#a9c5ae"/><stop offset="85.71%" stop-color="#a4c6a8"/><stop offset="92.86%" stop-color="#9ec8a2"/><stop offset="100%" stop-color="#99c99c"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "smiling-rain": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.863,
            0.69,
            0.929
          ],
          "hex": "#dcb0ed"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.6,
            0.788,
            0.612
          ],
          "hex": "#99c99c"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(340deg in oklab, #dcb0ed 0%, #99c99c 100%)",
        "interpolation": "oklab",
        "angle": 340,
        "name": "Smiling Rain",
        "contrast": {
          "white": {
            "ratio": 1.824,
            "at": 0.0159,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 11.149,
            "at": 0.9735,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Smiling Rain (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 Smiling Rain gradient (#dcb0ed, #99c99c), 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