CssShift logo CssShift — CSS Gradient Studio

Orange to Red Gradient — CSS, Hex and Angles

The reverse of red to orange: starts warm, ends hot, reads as escalation. The pair is #F97316 → #EF4444, 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: #F97316; /* fallback for old browsers */
  background: -webkit-linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  background: -moz-linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
}
CSS-in-JS
const gradientStyle = {
  background: '#F97316', // fallback
  backgroundImage: 'linear-gradient(135deg, #F97316 0%, #EF4444 100%)',
};

The two endpoints

NameHexRGBHSLvs whitevs black
Orange#F97316rgb(249, 115, 22)hsl(25, 95%, 53%)2.80:17.49:1
Red#EF4444rgb(239, 68, 68)hsl(0, 84%, 60%)3.76:15.58:1

The midpoint is #f45c2d (rgb(244, 92, 45), saturation 90%). Close to the 90% the two ends average, so the transition stays saturated throughout.

What each angle does

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

The same pair as linear, radial and conic

TypeFunction value
linearlinear-gradient(135deg, #F97316 0%, #EF4444 100%)
radialradial-gradient(circle at 50% 50%, #F97316 0%, #EF4444 100%)
conicconic-gradient(from 0deg at 50% 50%, #F97316 0%, #EF4444 100%)

Frequently asked

What is the CSS for a orange to red gradient?
background: linear-gradient(135deg, #F97316 0%, #EF4444 100%); — #F97316 at 0% and #EF4444 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 #F97316 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 #f45c2d holding 90% saturation against 90% at the ends.

Can I put text straight onto it?
Check both ends, not the average. White text clears 4.5:1 against neither end and black text clears it against the orange end. Measured ratios: Orange is 2.80:1 on white and 7.49:1 on black; Red is 3.76:1 on white and 5.58:1 on black.

Related gradients