# Rivian gradient

Gradients derived from Rivian'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/rivian-com
- Brand colors: https://brandsweets.com/colors/brands/rivian-com · Brand page: https://brandsweets.com/b/rivian-com
- Palette: primary #151515, secondary #ffaa00, accents #ffac00
- Source: https://rivian.com (extracted 2026-09-02)

## Brand gradient

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

## Hero background

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

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

- CSS: `linear-gradient(180deg in oklch shorter hue, #1e1e1e 0%, #0c0c0c 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#1e1e1e] to-[#0c0c0c]`
- Contrast (worst point): white 16.67:1 AA · black 1.07:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.1e1e1e-0c0c0c?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #252525 0%, #131313 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #171717 0%, #070707 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #414141 0%, #151515 50%, #000000 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#414141] via-[#151515] to-[#000000]`
- Contrast (worst point): white 10.21:1 AA · black 1.00:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.414141-151515-000000?a=135&in=oklch&hue=shorter

## Analogous

Primary #151515 is achromatic — harmony rotates #ffaa00 instead. Partner hue from the analogous rule at the source colour's lightness.

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

## Complementary

Primary #151515 is achromatic — harmony rotates #ffaa00 instead. 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, #ffaa00 0%, #8fc2ff 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#ffaa00] to-[#8fc2ff]`
- Contrast (worst point): white 1.85:1 fail · black 10.12:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.ffaa00-8fc2ff?a=135&in=oklch&hue=shorter

## Triadic

Primary #151515 is achromatic — harmony rotates #ffaa00 instead. Partner hue from the triadic rule at the source colour's lightness.

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

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 1.91:1, black 1.15:1 */
  --brand-gradient: linear-gradient(135deg in oklab, #151515 0%, #ffaa00 100%);
  /* hero — worst-case contrast: white 4.55:1 AA, black 1.01:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #010101 0%, #8e714c 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 16.67:1 AA, black 1.07:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #1e1e1e 0%, #0c0c0c 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #252525 0%, #131313 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #171717 0%, #070707 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.
