Brand gradient

Snyk gradient

The gradient Snyk's published colour tokens imply, derived by a pure function of the palette: primary → secondary in OKLab (OKLCH shorter hue when the hues are more than 140° apart; a tonal ramp when they are within ΔE 0.15), then a hero background with an ink that passes AA at the worst point along the line, a button surface with hover and active states, and the variant contact sheet. Same inputs, same gradients, forever — which is what makes them citable; the same values are served as --brand-gradient in the brand's brand.css.

Source
snyk.io
Extracted
Version
3
Verified from the live site at snyk.io on 5 September 2026 (version 3).
Snyk
black text · worst 2.43:1 · fails
white 2.19 failsblack 2.43 failsbanding high

Hero and button

Aa

Hero background

Open in maker →

Chroma ×0.35 so it can carry text; ink white (inkFor at the midpoint). L shifted −0.21 until the ink passes AA at the worst point (4.67:1).

white 4.67 AAblack 1.16 failsbanding high
css
linear-gradient(135deg in oklch shorter hue, #926a6a 0%, #6b3131 50%, #310610 100%)
tailwind v4
bg-linear-to-br/oklch from-[#926a6a] via-[#6b3131] to-[#310610]
Aa

Button / CTA

Open in maker →

ΔL 0.08 top→bottom in the primary's hue (a lit surface, not a rainbow); hover L +0.03, active L −0.03. L shifted −0.08 so white ink gets as close as the ±0.1 bound allows to AA on the surface and both states (worst 4.48:1). Ink is below AA (4.48:1 at the worst point) — use it for large text only, or pick a darker/lighter primary for buttons.

white 5.10 AAblack 3.07 AA largebanding high
Get started
hover
active
label ink below AA — large text only
css
linear-gradient(180deg in oklch shorter hue, #d52140 0%, #b80029 100%)
tailwind v4
bg-linear-to-b/oklch from-[#d52140] to-[#b80029]

Variants

Aa
white 2.19 failsblack 2.43 failsbanding high
css
linear-gradient(135deg in oklch shorter hue, #ff8f92 0%, #e4344b 50%, #9c001f 100%)
tailwind v4
bg-linear-to-br/oklch from-[#ff8f92] via-[#e4344b] to-[#9c001f]
Aa

Partner hue from the analogous rule at the source colour's lightness.

white 4.28 AA largeblack 4.83 AAbanding high
css
linear-gradient(135deg in oklab, #e4344b 0%, #d93295 100%)
tailwind v4
bg-linear-to-br/oklab from-[#e4344b] to-[#d93295]
Aa

Complementary

Open in maker →

Partner hue from the complementary rule at the source colour's lightness. ΔH 180° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

white 3.69 AA largeblack 4.87 AAbanding medium
css
linear-gradient(135deg in oklch shorter hue, #e4344b 0%, #2f9297 100%)
tailwind v4
bg-linear-to-br/oklch from-[#e4344b] to-[#2f9297]
Aa

Partner hue from the triadic rule at the source colour's lightness.

white 3.63 AA largeblack 4.88 AAbanding high
css
linear-gradient(135deg in oklab, #e4344b 0%, #43982a 100%)
tailwind v4
bg-linear-to-br/oklab from-[#e4344b] to-[#43982a]

Report — brand gradient

  • white ink: worst 2.19:1 at 0% (fails AA); black ink: worst 2.43: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 high: ~10px bands at 1440px — add grain 21 (≈2% soft-light noise) or shorten the ramp.

Export

The custom properties below are byte-identical to the gradient block in brand.css; the DTCG token is what tokens.json carries.

css custom properties · brand.css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 2.19:1, black 2.43:1 */
  --brand-gradient: linear-gradient(135deg in oklch shorter hue, #ff8f92 0%, #e4344b 50%, #9c001f 100%);
  /* hero — worst-case contrast: white 4.67:1 AA, black 1.16:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklch shorter hue, #926a6a 0%, #6b3131 50%, #310610 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 5.10:1 AA, black 3.07:1 AA-large */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #d52140 0%, #b80029 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #e03048 0%, #c30031 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #cb0d37 0%, #ab0023 100%);
  --brand-gradient-button-ink: #ffffff;
  /* button ink: 4.5:1 — below AA */
}
svg · brand gradient
<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="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#ff8f92"/><stop offset="3.57%" stop-color="#fd898d"/><stop offset="7.14%" stop-color="#fc8488"/><stop offset="10.71%" stop-color="#fa7e83"/><stop offset="14.29%" stop-color="#f8787e"/><stop offset="17.86%" stop-color="#f67279"/><stop offset="21.43%" stop-color="#f56c74"/><stop offset="25%" stop-color="#f3666f"/><stop offset="28.57%" stop-color="#f16069"/><stop offset="32.14%" stop-color="#ef5a64"/><stop offset="35.71%" stop-color="#ed535f"/><stop offset="39.29%" stop-color="#eb4c5a"/><stop offset="42.86%" stop-color="#e84555"/><stop offset="46.43%" stop-color="#e63d50"/><stop offset="50%" stop-color="#e4344b"/><stop offset="53.57%" stop-color="#df3148"/><stop offset="57.14%" stop-color="#d92e44"/><stop offset="60.71%" stop-color="#d42b41"/><stop offset="64.29%" stop-color="#cf283e"/><stop offset="67.86%" stop-color="#ca243b"/><stop offset="71.43%" stop-color="#c52138"/><stop offset="75%" stop-color="#bf1e35"/><stop offset="78.57%" stop-color="#ba1a31"/><stop offset="82.14%" stop-color="#b5172e"/><stop offset="85.71%" stop-color="#b0132b"/><stop offset="89.29%" stop-color="#ab0f28"/><stop offset="92.86%" stop-color="#a60a25"/><stop offset="96.43%" stop-color="#a10522"/><stop offset="100%" stop-color="#9c001f"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg · tokens.json
{
  "gradient": {
    "brand": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              1,
              0.561,
              0.573
            ],
            "hex": "#ff8f92"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.894,
              0.204,
              0.294
            ],
            "hex": "#e4344b"
          },
          "position": 0.5
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.612,
              0,
              0.122
            ],
            "hex": "#9c001f"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(135deg in oklch shorter hue, #ff8f92 0%, #e4344b 50%, #9c001f 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 135,
          "name": "brand",
          "contrast": {
            "white": {
              "ratio": 2.188,
              "at": 0,
              "passesAA": false,
              "passesAALarge": false
            },
            "black": {
              "ratio": 2.433,
              "at": 1,
              "passesAA": false,
              "passesAALarge": false
            },
            "suggestedInk": "#000000"
          }
        }
      },
      "$description": "The canonical brand gradient (--brand-gradient)."
    },
    "hero": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.573,
              0.416,
              0.416
            ],
            "hex": "#926a6a"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.42,
              0.192,
              0.192
            ],
            "hex": "#6b3131"
          },
          "position": 0.5
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.192,
              0.024,
              0.063
            ],
            "hex": "#310610"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(135deg in oklch shorter hue, #926a6a 0%, #6b3131 50%, #310610 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 135,
          "name": "hero",
          "ink": "#ffffff",
          "contrast": {
            "white": {
              "ratio": 4.675,
              "at": 0,
              "passesAA": true,
              "passesAALarge": true
            },
            "black": {
              "ratio": 1.164,
              "at": 1,
              "passesAA": false,
              "passesAALarge": false
            },
            "suggestedInk": "#ffffff"
          }
        }
      },
      "$description": "Low-chroma hero background with a text-safe ink (--brand-gradient-hero)."
    },
    "button": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.835,
              0.129,
              0.251
            ],
            "hex": "#d52140"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.722,
              0,
              0.161
            ],
            "hex": "#b80029"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(180deg in oklch shorter hue, #d52140 0%, #b80029 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 180,
          "name": "button",
          "ink": "#ffffff",
          "states": {
            "hover": "linear-gradient(180deg in oklch shorter hue, #e03048 0%, #c30031 100%)",
            "active": "linear-gradient(180deg in oklch shorter hue, #cb0d37 0%, #ab0023 100%)"
          },
          "contrast": {
            "white": {
              "ratio": 5.096,
              "at": 0,
              "passesAA": true,
              "passesAALarge": true
            },
            "black": {
              "ratio": 3.07,
              "at": 1,
              "passesAA": false,
              "passesAALarge": true
            },
            "suggestedInk": "#ffffff"
          }
        }
      },
      "$description": "Button / CTA surface with hover and active states (--brand-gradient-button)."
    }
  }
}

Colours

mcpConnect your agent — Snyk's gradients on demand
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

brand_gradients for snyk-io — give me the hero CSS and the ink that passes AA, then a version in oklch

Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.

Snyk and its marks belong to their owner. This page uses the name nominatively to describe gradients derived from the brand's published colour values; it does not reproduce logos or other brand assets, and it is not affiliated with or endorsed by Snyk. Owner of this brand? Request a correction or removal → Machine-readable: gradients.md