# NBA gradient

Gradients derived from NBA'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/nba-com
- Brand colors: https://brandsweets.com/colors/brands/nba-com · Brand page: https://brandsweets.com/b/nba-com
- Palette: primary #fbcd44, secondary #0268d6, accents #66abff
- Source: https://nba.com (extracted 2026-09-05)

## Brand gradient

ΔH 167° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

- CSS: `linear-gradient(135deg in oklch shorter hue, #fbcd44 0%, #0268d6 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#fbcd44] to-[#0268d6]`
- Contrast (worst point): white 1.51:1 fail · black 3.95:1 AA-large · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.fbcd44-0268d6?a=135&in=oklch&hue=shorter

## Hero background

Chroma ×0.35 so it can carry text; ink black (inkFor at the midpoint). L shifted +0.03 until the ink passes AA at the worst point (4.58:1).

- CSS: `linear-gradient(135deg in oklch shorter hue, #eadbb4 0%, #5d779c 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#eadbb4] to-[#5d779c]`
- Contrast (worst point): white 1.37:1 fail · black 4.58:1 AA · banding medium · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.eadbb4-5d779c?a=135&in=oklch&hue=shorter

## 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. Black ink passes AA on the surface and both states (worst 11.01:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #ffda54 0%, #eec032 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#ffda54] to-[#eec032]`
- Contrast (worst point): white 1.36:1 fail · black 12.22:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.ffda54-eec032?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #ffe67b 0%, #f8ca40 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #fed048 0%, #e4b622 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #fff7bb 0%, #fbcd44 50%, #c09300 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#fff7bb] via-[#fbcd44] to-[#c09300]`
- Contrast (worst point): white 1.09:1 fail · black 7.42:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.fff7bb-fbcd44-c09300?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, #fbcd44 0%, #fbc79e 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#fbcd44] to-[#fbc79e]`
- Contrast (worst point): white 1.50:1 fail · black 13.73:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.fbcd44-fbc79e?a=135

## Complementary

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

- CSS: `linear-gradient(135deg in oklch shorter hue, #fbcd44 0%, #c3d2fb 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#fbcd44] to-[#c3d2fb]`
- Contrast (worst point): white 1.43:1 fail · black 13.89:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.fbcd44-c3d2fb?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, #fbcd44 0%, #6ce7fb 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#fbcd44] to-[#6ce7fb]`
- Contrast (worst point): white 1.45:1 fail · black 13.89:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.fbcd44-6ce7fb?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 1.51:1, black 3.95:1 AA-large */
  --brand-gradient: linear-gradient(135deg in oklch shorter hue, #fbcd44 0%, #0268d6 100%);
  /* hero — worst-case contrast: white 1.37:1, black 4.58:1 AA; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklch shorter hue, #eadbb4 0%, #5d779c 100%);
  --brand-gradient-hero-ink: #000000;
  /* button — worst-case contrast: white 1.36:1, black 12.22:1 AA */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #ffda54 0%, #eec032 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #ffe67b 0%, #f8ca40 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #fed048 0%, #e4b622 100%);
  --brand-gradient-button-ink: #000000;
}
```

## 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.
