Named gradient · uiGradients

Forest

Forest is a red gradient from uiGradients (MIT) — #5a3f37 → #2c7744 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
white text · worst 5.48:1 · AA
white 5.48 AAblack 2.20 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.

sRGB37%
OKLab40%
OKLCH54%

Report

  • white ink: worst 5.48:1 at 100% (AA); black ink: worst 2.20:1 at 0% (fails AA) → use white text.
  • Banding high: ~26px bands at 1440px — add grain 48 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #5a3f37 0%, #594338 7.14%, #574739 14.29%, #564c3a 21.43%, #54503b 28.57%, #52543c 35.71%, #50583d 42.86%, #4d5c3e 50%, #4a603f 57.14%, #476340 64.29%, #436740 71.43%, #3f6b41 78.57%, #396f42 85.71%, #337343 92.86%, #2c7744 100%);
  background-image: linear-gradient(90deg in oklab, #5a3f37 0%, #2c7744 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#5a3f37] to-[#2c7744]
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="#5a3f37"/><stop offset="7.14%" stop-color="#594338"/><stop offset="14.29%" stop-color="#574739"/><stop offset="21.43%" stop-color="#564c3a"/><stop offset="28.57%" stop-color="#54503b"/><stop offset="35.71%" stop-color="#52543c"/><stop offset="42.86%" stop-color="#50583d"/><stop offset="50%" stop-color="#4d5c3e"/><stop offset="57.14%" stop-color="#4a603f"/><stop offset="64.29%" stop-color="#476340"/><stop offset="71.43%" stop-color="#436740"/><stop offset="78.57%" stop-color="#3f6b41"/><stop offset="85.71%" stop-color="#396f42"/><stop offset="92.86%" stop-color="#337343"/><stop offset="100%" stop-color="#2c7744"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "forest": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.353,
            0.247,
            0.216
          ],
          "hex": "#5a3f37"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.173,
            0.467,
            0.267
          ],
          "hex": "#2c7744"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #5a3f37 0%, #2c7744 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Forest",
        "contrast": {
          "white": {
            "ratio": 5.478,
            "at": 0.9957,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.201,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Forest (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More red 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 Forest gradient (#5a3f37, #2c7744), 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