Named gradient · uiGradients

Rastafari

Rastafari is a green gradient from uiGradients (MIT) — #1e9600 → #fff200 → #ff0000 at 90°. 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 5.25:1 · AA
white 1.17 failsblack 5.25 AAbanding low

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.

sRGB75%
OKLab75%
OKLCH75%

Report

  • white ink: worst 1.17:1 at 50% (fails AA); black ink: worst 5.25:1 at 100% (AA) → use black text.
  • 21/64 samples left sRGB by more than 5% and were gamut-mapped (oklab); expect slight hue drift there.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #1e9600 0%, #3a9d00 3.57%, #4ea300 7.14%, #5faa00 10.71%, #6fb000 14.29%, #7fb700 17.86%, #8ebe00 21.43%, #9cc400 25%, #aacb00 28.57%, #b9d100 32.14%, #c7d800 35.71%, #d5de00 39.29%, #e3e500 42.86%, #f1eb00 46.43%, #fff200 50%, #ffe601 53.57%, #ffd901 57.14%, #ffcd01 60.71%, #ffc001 64.29%, #ffb401 67.86%, #ffa701 71.43%, #ff9901 75%, #ff8c01 78.57%, #ff7d01 82.14%, #ff6e00 85.71%, #ff5e00 89.29%, #ff4b00 92.86%, #ff3300 96.43%, #ff0000 100%);
  background-image: linear-gradient(90deg in oklab, #1e9600 0%, #fff200 50%, #ff0000 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#1e9600] via-[#fff200] to-[#ff0000]
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="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#1e9600"/><stop offset="3.57%" stop-color="#3a9d00"/><stop offset="7.14%" stop-color="#4ea300"/><stop offset="10.71%" stop-color="#5faa00"/><stop offset="14.29%" stop-color="#6fb000"/><stop offset="17.86%" stop-color="#7fb700"/><stop offset="21.43%" stop-color="#8ebe00"/><stop offset="25%" stop-color="#9cc400"/><stop offset="28.57%" stop-color="#aacb00"/><stop offset="32.14%" stop-color="#b9d100"/><stop offset="35.71%" stop-color="#c7d800"/><stop offset="39.29%" stop-color="#d5de00"/><stop offset="42.86%" stop-color="#e3e500"/><stop offset="46.43%" stop-color="#f1eb00"/><stop offset="50%" stop-color="#fff200"/><stop offset="53.57%" stop-color="#ffe601"/><stop offset="57.14%" stop-color="#ffd901"/><stop offset="60.71%" stop-color="#ffcd01"/><stop offset="64.29%" stop-color="#ffc001"/><stop offset="67.86%" stop-color="#ffb401"/><stop offset="71.43%" stop-color="#ffa701"/><stop offset="75%" stop-color="#ff9901"/><stop offset="78.57%" stop-color="#ff8c01"/><stop offset="82.14%" stop-color="#ff7d01"/><stop offset="85.71%" stop-color="#ff6e00"/><stop offset="89.29%" stop-color="#ff5e00"/><stop offset="92.86%" stop-color="#ff4b00"/><stop offset="96.43%" stop-color="#ff3300"/><stop offset="100%" stop-color="#ff0000"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "rastafari": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.118,
            0.588,
            0
          ],
          "hex": "#1e9600"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0.949,
            0
          ],
          "hex": "#fff200"
        },
        "position": 0.5
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            1,
            0,
            0
          ],
          "hex": "#ff0000"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #1e9600 0%, #fff200 50%, #ff0000 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Rastafari",
        "contrast": {
          "white": {
            "ratio": 1.17,
            "at": 0.5015,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 5.252,
            "at": 1,
            "passesAA": true,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Rastafari (uiGradients, 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 Rastafari gradient (#1e9600, #fff200, #ff0000), 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 uiGradients (MIT) — licences