Named gradient · uiGradients

Petrol

Petrol is a green gradient from uiGradients (MIT) — #bbd2c5 → #536976 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 3.65:1 · AA large
white 1.60 failsblack 3.65 AA largebanding medium

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.

sRGB77%
OKLab77%
OKLCH94%

Report

  • white ink: worst 1.60:1 at 0% (fails AA); black ink: worst 3.65:1 at 100% (AA-large only) → use black text.
  • Body text fails AA everywhere on this gradient; large text (≥24px / 19px bold) is fine. Add a scrim or lower the chroma for body copy.
  • Banding medium: ~14px bands at 1440px — add grain 28 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #bbd2c5 0%, #b3cabf 7.14%, #abc2b9 14.29%, #a4bbb4 21.43%, #9cb3ae 28.57%, #94aba8 35.71%, #8da4a3 42.86%, #859c9d 50%, #7e9597 57.14%, #768d92 64.29%, #6f868c 71.43%, #687e87 78.57%, #617781 85.71%, #5a707b 92.86%, #536976 100%);
  background-image: linear-gradient(90deg in oklab, #bbd2c5 0%, #536976 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#bbd2c5] to-[#536976]
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="#bbd2c5"/><stop offset="7.14%" stop-color="#b3cabf"/><stop offset="14.29%" stop-color="#abc2b9"/><stop offset="21.43%" stop-color="#a4bbb4"/><stop offset="28.57%" stop-color="#9cb3ae"/><stop offset="35.71%" stop-color="#94aba8"/><stop offset="42.86%" stop-color="#8da4a3"/><stop offset="50%" stop-color="#859c9d"/><stop offset="57.14%" stop-color="#7e9597"/><stop offset="64.29%" stop-color="#768d92"/><stop offset="71.43%" stop-color="#6f868c"/><stop offset="78.57%" stop-color="#687e87"/><stop offset="85.71%" stop-color="#617781"/><stop offset="92.86%" stop-color="#5a707b"/><stop offset="100%" stop-color="#536976"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "petrol": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.733,
            0.824,
            0.773
          ],
          "hex": "#bbd2c5"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.325,
            0.412,
            0.463
          ],
          "hex": "#536976"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #bbd2c5 0%, #536976 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Petrol",
        "contrast": {
          "white": {
            "ratio": 1.598,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 3.65,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Petrol (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 Petrol gradient (#bbd2c5, #536976), 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