Named gradient · WebGradients

Rich Metal

Rich Metal is a blue gradient from WebGradients (MIT) — #d7d2cc → #304352 at 0°. 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 2.05:1 · fails
white 1.50 failsblack 2.05 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.

sRGB5%
OKLab5%
OKLCH44%

Report

  • white ink: worst 1.50:1 at 0% (fails AA); black ink: worst 2.05:1 at 100% (fails AA) → use black text.
  • Neither ink passes AA at the worst point — treat as decorative or add a scrim (rgba(0,0,0,.35) typically lifts white ink past 4:1).
  • Banding medium: ~9px bands at 1440px — add grain 18 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(0deg, #d7d2cc 0%, #cac7c3 7.14%, #bdbcba 14.29%, #b0b1b1 21.43%, #a4a7a8 28.57%, #989c9f 35.71%, #8b9296 42.86%, #7f878d 50%, #737d84 57.14%, #68737c 64.29%, #5c6973 71.43%, #515f6b 78.57%, #465662 85.71%, #3b4c5a 92.86%, #304352 100%);
  background-image: linear-gradient(0deg in oklab, #d7d2cc 0%, #304352 100%);
}
tailwind v4
bg-linear-to-t/oklab from-[#d7d2cc] to-[#304352]
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="720" y1="600" x2="720" y2="0"><stop offset="0%" stop-color="#d7d2cc"/><stop offset="7.14%" stop-color="#cac7c3"/><stop offset="14.29%" stop-color="#bdbcba"/><stop offset="21.43%" stop-color="#b0b1b1"/><stop offset="28.57%" stop-color="#a4a7a8"/><stop offset="35.71%" stop-color="#989c9f"/><stop offset="42.86%" stop-color="#8b9296"/><stop offset="50%" stop-color="#7f878d"/><stop offset="57.14%" stop-color="#737d84"/><stop offset="64.29%" stop-color="#68737c"/><stop offset="71.43%" stop-color="#5c6973"/><stop offset="78.57%" stop-color="#515f6b"/><stop offset="85.71%" stop-color="#465662"/><stop offset="92.86%" stop-color="#3b4c5a"/><stop offset="100%" stop-color="#304352"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "rich-metal": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.843,
            0.824,
            0.8
          ],
          "hex": "#d7d2cc"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.188,
            0.263,
            0.322
          ],
          "hex": "#304352"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(0deg in oklab, #d7d2cc 0%, #304352 100%)",
        "interpolation": "oklab",
        "angle": 0,
        "name": "Rich Metal",
        "contrast": {
          "white": {
            "ratio": 1.502,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "black": {
            "ratio": 2.05,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#000000"
        }
      }
    },
    "$description": "Rich Metal (WebGradients, MIT), rendered in OKLab."
  }
}

Tagged

More blue 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 Rich Metal gradient (#d7d2cc, #304352), 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