# Marvel gradient

Gradients derived from Marvel's published colour tokens (nominative use; no brand assets). Deterministic: the same values are served as `--brand-gradient*` in the brand's brand.css.

- Page: https://brandsweets.com/gradients/brands/marvel-com
- Brand colors: https://brandsweets.com/colors/brands/marvel-com · Brand page: https://brandsweets.com/b/marvel-com
- Palette: primary #6769bc, secondary #223364, accents #e62429
- Source: https://marvel.com (extracted 2026-09-05)

## Brand gradient

- CSS: `linear-gradient(135deg in oklab, #6769bc 0%, #223364 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#6769bc] to-[#223364]`
- Contrast (worst point): white 4.86:1 AA · black 1.73:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.6769bc-223364?a=135

## Hero background

Chroma ×0.35 so it can carry text; ink white (inkFor at the midpoint). Passes AA for that ink at the worst point (4.76:1) without adjusting L.

- CSS: `linear-gradient(135deg in oklab, #6e718e 0%, #2f3647 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#6e718e] to-[#2f3647]`
- Contrast (worst point): white 4.76:1 AA · black 1.74:1 fail · banding medium · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.6e718e-2f3647?a=135

## Button / CTA

Δ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.06 so white ink passes AA on the surface and both states (worst 4.66:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #6163b5 0%, #4c4c9c 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#6163b5] to-[#4c4c9c]`
- Contrast (worst point): white 5.30:1 AA · black 2.82:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.6163b5-4c4c9c?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #6a6cbf 0%, #5454a5 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #595aac 0%, #444392 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #9ba0f8 0%, #6769bc 50%, #383582 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#9ba0f8] via-[#6769bc] to-[#383582]`
- Contrast (worst point): white 2.39:1 fail · black 2.00:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.9ba0f8-6769bc-383582?a=135&in=oklch&hue=shorter

## Analogous

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

- CSS: `linear-gradient(135deg in oklab, #6769bc 0%, #4e77a2 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#6769bc] to-[#4e77a2]`
- Contrast (worst point): white 4.67:1 AA · black 4.30:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.6769bc-4e77a2?a=135

## Complementary

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

- CSS: `linear-gradient(135deg in oklch shorter hue, #6769bc 0%, #7b754c 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#6769bc] to-[#7b754c]`
- Contrast (worst point): white 4.46:1 AA-large · black 4.32:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.6769bc-7b754c?a=135&in=oklch&hue=shorter

## Triadic

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

- CSS: `linear-gradient(135deg in oklab, #6769bc 0%, #a0614b 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#6769bc] to-[#a0614b]`
- Contrast (worst point): white 4.80:1 AA · black 4.29:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.6769bc-a0614b?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 4.86:1 AA, black 1.73:1 */
  --brand-gradient: linear-gradient(135deg in oklab, #6769bc 0%, #223364 100%);
  /* hero — worst-case contrast: white 4.76:1 AA, black 1.74:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #6e718e 0%, #2f3647 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 5.30:1 AA, black 2.82:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #6163b5 0%, #4c4c9c 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #6a6cbf 0%, #5454a5 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #595aac 0%, #444392 100%);
  --brand-gradient-button-ink: #ffffff;
}
```

## Gradient maker

Every maker URL is the gradient's state: `/gradients/new/v1.<hex>-<hex>[_pos]?a=135&in=oklch&hue=shorter&e=soft&g=8`. Hand one to a human, let them refine, and read the link they return.

## Connect an agent

Point any MCP client at the BrandSweets gradients endpoint for the same engine and corpus:

- Endpoint: https://mcp.brandsweets.com/gradients/mcp
- Tools: `make_gradient` (2–5 colours → CSS with the interpolation space, Tailwind v4, SVG, PNG URL, DTCG token + the contrast/banding/gamut report), `brand_gradients` (brand slug or palette → brand gradient, hero, button, variants).
- Resource: `gradients://corpus` — the whole bundled corpus as JSON.
