# PayPal gradient

Gradients derived from PayPal'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/paypal-com
- Brand colors: https://brandsweets.com/colors/brands/paypal-com · Brand page: https://brandsweets.com/b/paypal-com
- Palette: primary #042c94, secondary #65ccfc, accents #ff9100
- Source: https://paypal.com (extracted 2026-09-02)

## Brand gradient

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

## Hero background

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

- CSS: `linear-gradient(135deg in oklab, #010316 0%, #5a7989 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#010316] to-[#5a7989]`
- Contrast (worst point): white 4.63:1 AA · black 1.03:1 fail · banding medium · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.010316-5a7989?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 8.74:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #0e39a1 0%, #001e87 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#0e39a1] to-[#001e87]`
- Contrast (worst point): white 9.91:1 AA · black 1.54:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.0e39a1-001e87?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #1742ab 0%, #022991 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #062f97 0%, #00127d 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #3565d0 0%, #042c94 50%, #01004c 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#3565d0] via-[#042c94] to-[#01004c]`
- Contrast (worst point): white 5.35:1 AA · black 1.11:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.3565d0-042c94-01004c?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, #042c94 0%, #094159 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#042c94] to-[#094159]`
- Contrast (worst point): white 10.93:1 AA · black 1.79:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.042c94-094159?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, #042c94 0%, #4c3808 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#042c94] to-[#4c3808]`
- Contrast (worst point): white 10.27:1 AA · black 1.79:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.042c94-4c3808?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, #042c94 0%, #710c16 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#042c94] to-[#710c16]`
- Contrast (worst point): white 11.46:1 AA · black 1.76:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.042c94-710c16?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 1.81:1, black 1.79:1 */
  --brand-gradient: linear-gradient(135deg in oklab, #042c94 0%, #65ccfc 100%);
  /* hero — worst-case contrast: white 4.63:1 AA, black 1.03:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #010316 0%, #5a7989 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 9.91:1 AA, black 1.54:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #0e39a1 0%, #001e87 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #1742ab 0%, #022991 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #062f97 0%, #00127d 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.
