Named gradient · uiGradients

Compass

Compass is a blue gradient from uiGradients (MIT) — #516b8b → #056b3b 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.49:1 · AA
white 5.49 AAblack 3.17 AA largebanding 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.

sRGB61%
OKLab56%
OKLCH69%

Report

  • white ink: worst 5.49:1 at 0% (AA); black ink: worst 3.17:1 at 100% (AA-large only) → use white text.
  • Banding high: ~18px bands at 1440px — add grain 36 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #516b8b 0%, #4d6b86 7.14%, #4a6c80 14.29%, #466c7b 21.43%, #426c75 28.57%, #3e6c70 35.71%, #3a6c6a 42.86%, #356c65 50%, #316c5f 57.14%, #2c6c59 64.29%, #276c54 71.43%, #216c4e 78.57%, #1a6c48 85.71%, #116b42 92.86%, #056b3b 100%);
  background-image: linear-gradient(90deg in oklab, #516b8b 0%, #056b3b 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#516b8b] to-[#056b3b]
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="#516b8b"/><stop offset="7.14%" stop-color="#4d6b86"/><stop offset="14.29%" stop-color="#4a6c80"/><stop offset="21.43%" stop-color="#466c7b"/><stop offset="28.57%" stop-color="#426c75"/><stop offset="35.71%" stop-color="#3e6c70"/><stop offset="42.86%" stop-color="#3a6c6a"/><stop offset="50%" stop-color="#356c65"/><stop offset="57.14%" stop-color="#316c5f"/><stop offset="64.29%" stop-color="#2c6c59"/><stop offset="71.43%" stop-color="#276c54"/><stop offset="78.57%" stop-color="#216c4e"/><stop offset="85.71%" stop-color="#1a6c48"/><stop offset="92.86%" stop-color="#116b42"/><stop offset="100%" stop-color="#056b3b"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "compass": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.318,
            0.42,
            0.545
          ],
          "hex": "#516b8b"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.02,
            0.42,
            0.231
          ],
          "hex": "#056b3b"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #516b8b 0%, #056b3b 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Compass",
        "contrast": {
          "white": {
            "ratio": 5.489,
            "at": 0,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 3.173,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Compass (uiGradients, 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 Compass gradient (#516b8b, #056b3b), 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