Named gradient · uiGradients

Dark Knight

Dark Knight is a yellow gradient from uiGradients (MIT) — #ba8b02 → #181818 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 3.10:1 · AA large
white 3.10 AA largeblack 1.18 failsbanding 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.

sRGB0%
OKLab0%
OKLCH0%

Report

  • white ink: worst 3.10:1 at 0% (AA-large only); black ink: worst 1.18:1 at 100% (fails AA) → use white 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: ~9px bands at 1440px — add grain 18 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #ba8b02 0%, #ad820f 7.14%, #a07916 14.29%, #94701b 21.43%, #87681e 28.57%, #7b5f20 35.71%, #6f5721 42.86%, #634e21 50%, #574621 57.14%, #4c3e21 64.29%, #413620 71.43%, #362e1e 78.57%, #2c271d 85.71%, #221f1a 92.86%, #181818 100%);
  background-image: linear-gradient(90deg in oklab, #ba8b02 0%, #181818 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#ba8b02] to-[#181818]
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="#ba8b02"/><stop offset="7.14%" stop-color="#ad820f"/><stop offset="14.29%" stop-color="#a07916"/><stop offset="21.43%" stop-color="#94701b"/><stop offset="28.57%" stop-color="#87681e"/><stop offset="35.71%" stop-color="#7b5f20"/><stop offset="42.86%" stop-color="#6f5721"/><stop offset="50%" stop-color="#634e21"/><stop offset="57.14%" stop-color="#574621"/><stop offset="64.29%" stop-color="#4c3e21"/><stop offset="71.43%" stop-color="#413620"/><stop offset="78.57%" stop-color="#362e1e"/><stop offset="85.71%" stop-color="#2c271d"/><stop offset="92.86%" stop-color="#221f1a"/><stop offset="100%" stop-color="#181818"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "dark-knight": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.729,
            0.545,
            0.008
          ],
          "hex": "#ba8b02"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.094,
            0.094,
            0.094
          ],
          "hex": "#181818"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #ba8b02 0%, #181818 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Dark Knight",
        "contrast": {
          "white": {
            "ratio": 3.096,
            "at": 0.0027,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 1.183,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Dark Knight (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More yellow 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 Dark Knight gradient (#ba8b02, #181818), 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