Named gradient · WebGradients

Grass Shampoo

Grass Shampoo is a green gradient from WebGradients (MIT) — #dfffcd → #90f9c4 → #39f3bb 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
black text · worst 14.71:1 · AA
white 1.09 failsblack 14.71 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.

sRGB62%
OKLab62%
OKLCH62%

Report

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

Export

css
.gradient {
  background-image: linear-gradient(135deg, #dfffcd 0%, #daffcc 3.43%, #d5fecc 6.86%, #d0fecb 10.29%, #cbfdca 13.71%, #c5fdca 17.14%, #c0fdc9 20.57%, #bafcc9 24%, #b5fcc8 27.43%, #affbc7 30.86%, #a9fbc7 34.29%, #a3fac6 37.71%, #9dfac5 41.14%, #97f9c5 44.57%, #90f9c4 48%, #8bf9c3 51.71%, #87f8c3 55.43%, #82f8c2 59.14%, #7df7c1 62.86%, #78f7c1 66.57%, #73f7c0 70.29%, #6df6bf 74%, #67f6bf 77.71%, #61f5be 81.43%, #5bf5be 85.14%, #53f4bd 88.86%, #4cf4bc 92.57%, #43f3bc 96.29%, #39f3bb 100%);
  background-image: linear-gradient(135deg in oklab, #dfffcd 0%, #90f9c4 48%, #39f3bb 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#dfffcd] via-[#90f9c4] via-48% to-[#39f3bb]
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="#dfffcd"/><stop offset="3.43%" stop-color="#daffcc"/><stop offset="6.86%" stop-color="#d5fecc"/><stop offset="10.29%" stop-color="#d0fecb"/><stop offset="13.71%" stop-color="#cbfdca"/><stop offset="17.14%" stop-color="#c5fdca"/><stop offset="20.57%" stop-color="#c0fdc9"/><stop offset="24%" stop-color="#bafcc9"/><stop offset="27.43%" stop-color="#b5fcc8"/><stop offset="30.86%" stop-color="#affbc7"/><stop offset="34.29%" stop-color="#a9fbc7"/><stop offset="37.71%" stop-color="#a3fac6"/><stop offset="41.14%" stop-color="#9dfac5"/><stop offset="44.57%" stop-color="#97f9c5"/><stop offset="48%" stop-color="#90f9c4"/><stop offset="51.71%" stop-color="#8bf9c3"/><stop offset="55.43%" stop-color="#87f8c3"/><stop offset="59.14%" stop-color="#82f8c2"/><stop offset="62.86%" stop-color="#7df7c1"/><stop offset="66.57%" stop-color="#78f7c1"/><stop offset="70.29%" stop-color="#73f7c0"/><stop offset="74%" stop-color="#6df6bf"/><stop offset="77.71%" stop-color="#67f6bf"/><stop offset="81.43%" stop-color="#61f5be"/><stop offset="85.14%" stop-color="#5bf5be"/><stop offset="88.86%" stop-color="#53f4bd"/><stop offset="92.57%" stop-color="#4cf4bc"/><stop offset="96.29%" stop-color="#43f3bc"/><stop offset="100%" stop-color="#39f3bb"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "grass-shampoo": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.875,
            1,
            0.804
          ],
          "hex": "#dfffcd"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.565,
            0.976,
            0.769
          ],
          "hex": "#90f9c4"
        },
        "position": 0.48
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.224,
            0.953,
            0.733
          ],
          "hex": "#39f3bb"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #dfffcd 0%, #90f9c4 48%, #39f3bb 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "Grass Shampoo",
        "contrast": {
          "white": {
            "ratio": 1.087,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 14.712,
            "at": 1,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Grass Shampoo (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More green 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 Grass Shampoo gradient (#dfffcd, #90f9c4, #39f3bb), 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