# McDonald's gradient

Gradients derived from McDonald's'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/mcdonalds-com
- Brand colors: https://brandsweets.com/colors/brands/mcdonalds-com · Brand page: https://brandsweets.com/b/mcdonalds-com
- Palette: primary #ffc72c, secondary #da291c, accents #006bae
- Source: https://mcdonalds.com (extracted 2026-09-02)

## Brand gradient

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

## Hero background

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

- CSS: `linear-gradient(135deg in oklab, #e1cea5 0%, #a0685f 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#e1cea5] to-[#a0685f]`
- Contrast (worst point): white 1.55:1 fail · black 4.64:1 AA · banding medium · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.e1cea5-a0685f?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. Black ink passes AA on the surface and both states (worst 10.61:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #ffd443 0%, #f2ba0c 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#ffd443] to-[#f2ba0c]`
- Contrast (worst point): white 1.42:1 fail · black 11.80:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.ffd443-f2ba0c?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #ffe17b 0%, #fcc426 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #ffca32 0%, #e7b000 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #fff6c2 0%, #ffc72c 50%, #c18e00 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#fff6c2] via-[#ffc72c] to-[#c18e00]`
- Contrast (worst point): white 1.09:1 fail · black 7.14:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.fff6c2-ffc72c-c18e00?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, #ffc72c 0%, #ffc195 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#ffc72c] to-[#ffc195]`
- Contrast (worst point): white 1.56:1 fail · black 13.28:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.ffc72c-ffc195?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, #ffc72c 0%, #bbcfff 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#ffc72c] to-[#bbcfff]`
- Contrast (worst point): white 1.55:1 fail · black 12.39:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.ffc72c-bbcfff?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, #ffc72c 0%, #15eaff 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#ffc72c] to-[#15eaff]`
- Contrast (worst point): white 1.47:1 fail · black 13.43:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.ffc72c-15eaff?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 1.56:1, black 4.32:1 AA-large */
  --brand-gradient: linear-gradient(135deg in oklab, #ffc72c 0%, #da291c 100%);
  /* hero — worst-case contrast: white 1.55:1, black 4.64:1 AA; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #e1cea5 0%, #a0685f 100%);
  --brand-gradient-hero-ink: #000000;
  /* button — worst-case contrast: white 1.42:1, black 11.80:1 AA */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #ffd443 0%, #f2ba0c 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #ffe17b 0%, #fcc426 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #ffca32 0%, #e7b000 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.
