# Cloudflare gradient

Gradients derived from Cloudflare'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/cloudflare
- Brand colors: https://brandsweets.com/colors/brands/cloudflare · Brand page: https://brandsweets.com/b/cloudflare
- Palette: primary #f6821f, secondary #ff5e1f
- Source: https://cloudflare.com (extracted 2026-09-02)

## Brand gradient

ΔE_OK 0.071 < 0.15 between #f6821f and #ff5e1f — a 2-stop would read as a flat fill, so this is a tonal ramp of #f6821f.

- CSS: `linear-gradient(135deg in oklch shorter hue, #ffd1ab 0%, #f6821f 50%, #b34e00 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#ffd1ab] via-[#f6821f] to-[#b34e00]`
- Contrast (worst point): white 1.40:1 fail · black 4.01:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.ffd1ab-f6821f-b34e00?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.02 until the ink passes AA at the worst point (4.53:1).

- CSS: `linear-gradient(135deg in oklch shorter hue, #eeded1 0%, #cba288 50%, #906d5c 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#eeded1] via-[#cba288] to-[#906d5c]`
- Contrast (worst point): white 1.31:1 fail · black 4.53:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.eeded1-cba288-906d5c?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 6.25:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #ff8f32 0%, #e87500 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#ff8f32] to-[#e87500]`
- Contrast (worst point): white 2.28:1 fail · black 6.98:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.ff8f32-e87500?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #ff9b49 0%, #f27f19 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #fa8524 0%, #de6c00 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #ffd1ab 0%, #f6821f 50%, #b34e00 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#ffd1ab] via-[#f6821f] to-[#b34e00]`
- Contrast (worst point): white 1.40:1 fail · black 4.01:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.ffd1ab-f6821f-b34e00?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, #f6821f 0%, #fb7773 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#f6821f] to-[#fb7773]`
- Contrast (worst point): white 2.58:1 fail · black 7.97:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.f6821f-fb7773?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, #f6821f 0%, #24b3f1 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#f6821f] to-[#24b3f1]`
- Contrast (worst point): white 2.39:1 fail · black 7.90:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.f6821f-24b3f1?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, #f6821f 0%, #25c09f 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#f6821f] to-[#25c09f]`
- Contrast (worst point): white 2.29:1 fail · black 8.10:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.f6821f-25c09f?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 1.40:1, black 4.01:1 AA-large */
  --brand-gradient: linear-gradient(135deg in oklch shorter hue, #ffd1ab 0%, #f6821f 50%, #b34e00 100%);
  /* hero — worst-case contrast: white 1.31:1, black 4.53:1 AA; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklch shorter hue, #eeded1 0%, #cba288 50%, #906d5c 100%);
  --brand-gradient-hero-ink: #000000;
  /* button — worst-case contrast: white 2.28:1, black 6.98:1 AA */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #ff8f32 0%, #e87500 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #ff9b49 0%, #f27f19 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #fa8524 0%, #de6c00 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.
