CssShift logo CssShift — CSS Gradient Studio

Indigo to Cyan Gradient — CSS, Hex and Angles

Tech-blue plus electric cyan — the most common data-viz pair after blue to purple. The pair is #4F46E5 → #06B6D4, and on a 135° axis it reads as a diagonal wash. Everything below is generated from those two values, so the CSS you copy is exactly what the previews render.

0° · bottom to top
45°
135° · default
90° · left to right
radial
conic

Copy the CSS

CSS
.gradient {
  background: #4F46E5; /* fallback for old browsers */
  background: -webkit-linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  background: -moz-linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
}
CSS-in-JS
const gradientStyle = {
  background: '#4F46E5', // fallback
  backgroundImage: 'linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%)',
};

The two endpoints

NameHexRGBHSLvs whitevs black
Indigo#4F46E5rgb(79, 70, 229)hsl(243, 75%, 59%)6.29:13.34:1
Cyan#06B6D4rgb(6, 182, 212)hsl(189, 94%, 43%)2.43:18.65:1

The midpoint is #2b7edd (rgb(43, 126, 221), saturation 72%). Close to the 85% the two ends average, so the transition stays saturated throughout.

What each angle does

AngleDirectionFunction value
0°bottom → toplinear-gradient(0deg, #4F46E5 0%, #06B6D4 100%)
45°bottom-left → top-rightlinear-gradient(45deg, #4F46E5 0%, #06B6D4 100%)
90°left → rightlinear-gradient(90deg, #4F46E5 0%, #06B6D4 100%)
135°top-left → bottom-rightlinear-gradient(135deg, #4F46E5 0%, #06B6D4 100%)
180°top → bottomlinear-gradient(180deg, #4F46E5 0%, #06B6D4 100%)
225°top-right → bottom-leftlinear-gradient(225deg, #4F46E5 0%, #06B6D4 100%)
270°right → leftlinear-gradient(270deg, #4F46E5 0%, #06B6D4 100%)
315°bottom-right → top-leftlinear-gradient(315deg, #4F46E5 0%, #06B6D4 100%)

The same pair as linear, radial and conic

TypeFunction value
linearlinear-gradient(135deg, #4F46E5 0%, #06B6D4 100%)
radialradial-gradient(circle at 50% 50%, #4F46E5 0%, #06B6D4 100%)
conicconic-gradient(from 0deg at 50% 50%, #4F46E5 0%, #06B6D4 100%)

Frequently asked

What is the CSS for a indigo to cyan gradient?
background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%); — #4F46E5 at 0% and #06B6D4 at 100%, on a 135° axis. Swap 135deg for to right if you want the direction to follow the element ratio instead of a fixed angle.

Does it need vendor prefixes?
Not for current browsers. Unprefixed linear-gradient has been supported everywhere for years, and the -webkit- / -moz- lines only matter for stacks that still ship to browsers older than 2013. The generator emits both, plus a solid #4F46E5 fallback.

Why would the middle look muddy?
This pair does not: both ends are close enough in hue that a straight sRGB blend stays clean, with mid #2b7edd holding 72% saturation against 85% at the ends.

Can I put text straight onto it?
Check both ends, not the average. White text clears 4.5:1 against the indigo end and black text clears it against neither end. Measured ratios: Indigo is 6.29:1 on white and 3.34:1 on black; Cyan is 2.43:1 on white and 8.65:1 on black.

Related gradients