Purple to Pastel Magenta gradient and UI scale
CSS linear-gradient
linear-gradient(135deg in oklch, oklch(0.64 0.13 270), oklch(0.88 0.05 295))Sandbox
Open Purple to Pastel Magenta in the blender
Drag the two orbs if you want a different mix. The theme on the homepage follows this pair.
Open sandboxSample card
Purple to Pastel Magenta
WCAG AA 17.37:1
50 to 900 purple scale
--color-purple-50: oklch(0.97 0.01 270); --color-purple-100: oklch(0.93 0.01 270); --color-purple-200: oklch(0.86 0.04 270); --color-purple-300: oklch(0.76 0.08 270); --color-purple-400: oklch(0.66 0.11 270); --color-purple-500: oklch(0.55 0.15 270); --color-purple-600: oklch(0.46 0.19 270); --color-purple-700: oklch(0.38 0.15 270); --color-purple-800: oklch(0.30 0.12 270); --color-purple-900: oklch(0.24 0.10 270);
50
oklch(0.97 0.01 270)
100
oklch(0.93 0.01 270)
200
oklch(0.86 0.04 270)
300
oklch(0.76 0.08 270)
400
oklch(0.66 0.11 270)
500
oklch(0.55 0.15 270)
600
oklch(0.46 0.19 270)
700
oklch(0.38 0.15 270)
800
oklch(0.30 0.12 270)
900
oklch(0.24 0.10 270)
How Purple to Pastel Magenta is built
Hue distance
Purple to Pastel Magenta keeps the second color pale, 25° from Purple toward Pastel Magenta.
Contrast
Text on the page background measures 17.4:1. The same text on the card surface measures 15.5:1. Both clear the WCAG AA line of 4.5:1.
Using the scale
Paint the hero with the Purple to Pastel Magenta gradient, then use the Purple scale for controls and the neutral tokens for cards.