Electric Gradient
CSS
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);Open in Gradient Maker →
Other formats
CSS custom property
--gradient-electric: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
Tailwind arbitrary value
bg-[linear-gradient(135deg,_#4facfe_0%,_#00f2fe_100%)]
Same colours, other shapes
The same stops passed through the other gradient functions — copy whichever suits the surface.
Reversed direction
background: linear-gradient(315deg, #4facfe 0%, #00f2fe 100%);Radial
background: radial-gradient(circle, #4facfe 0%, #00f2fe 100%);Conic
background: conic-gradient(from 135deg, #4facfe 0%, #00f2fe 100%);Text on this gradient
Aa
1.39:1
Aa
7.80:1
Measured against every stop, near-black text holds a worst-case contrast of 7.80:1 on this gradient. Passes WCAG AA for body text (4.5:1).
Color stops
About this gradient
Electric is a ready-to-use CSS gradient with 2 color stops. Copy the CSS below, open it in the Gradient Maker to tweak the angle and stops, or click any stop color for its full breakdown.
More gradients