Gradient Type & Direction
Angle:135°
Colour Stops
#3b5bdb0%
#7c3aed100%
Presets
Generated CSS
CSS value only:
linear-gradient(135deg, #3b5bdb 0%, #7c3aed 100%)

Gradients Without the CSS Syntax Gymnastics

CSS gradients are among the most powerful visual tools in the stylesheet, but writing them by hand is tedious. A three-stop linear gradient at a 135-degree angle with specific color positions is several lines of CSS with nothing to see until you open the browser. This generator gives you the visual feedback first: see the gradient update as you drag stops, adjust the angle, or change colors, then copy the finished CSS with one click.

The output works in every modern browser without vendor prefixes. No dependencies, no additional files — just CSS that you paste into your stylesheet.

Linear, Radial, Conic — Understanding the Three Types

Linear gradients transition colors in a straight line from one point to another. The angle controls the direction — 0° is bottom-to-top, 90° is left-to-right. They're the most common gradient type: backgrounds, borders, button fills, text effects.

Radial gradients radiate outward from a center point in circular or elliptical rings. The shape (circle vs ellipse) and the position of the center are configurable. Used for spotlight effects, glassmorphism highlights, and circular UI elements.

Conic gradients rotate colors around a center point, creating a sweep effect. The transition goes around the clock rather than across a line. Unlike linear and radial, conic gradients are ideal for pie charts (use hard color stops at percentage values that match your data), color wheels, and progress rings.

Color Stops: The Building Block of Complex Gradients

Every gradient is defined by its color stops — each stop specifies a color and a position (0% to 100% of the gradient length). The browser smoothly interpolates between adjacent stops. A gradient from blue at 0% to green at 100% is a simple two-stop gradient. Adding white at 50% creates a blue-white-green tri-color gradient. Placing two stops at exactly the same position (red at 45%, blue at 45%) creates an abrupt hard edge with no blending — useful for stripes, flags, and segmented UI elements.

For the gradient colors you've designed here, the Color Converter can convert HEX values from your design file to HSL format, which many designers prefer for adjusting lightness and creating palette variations.

Practical Design Applications

  • Hero section backgrounds: Multi-stop linear gradients create depth and visual interest without image assets. Combine with background-size and background-position for parallax-style effects.
  • Card and button highlights: A subtle linear gradient from white at the top to transparent at the bottom gives flat UI elements a three-dimensional quality without harsh shadows.
  • Text gradient fills: Apply the generated CSS via background-clip: text to create gradient-filled headings. Works cross-browser with vendor prefix and modern property together.
  • Progress and loading indicators: Conic gradients with hard stops create CSS-only pie charts and progress rings that update via a single custom property value.
  • Image overlays: A gradient from transparent to semi-opaque black over a photo improves text legibility. Build the exact overlay color and opacity here, then combine with CSS background-blend-mode.
  • Animated gradients: CSS gradient properties can be animated. Build the start and end states of your gradient here, then interpolate between them using CSS @keyframes. After generating the CSS, compress the final stylesheet with the CSS Minifier.

Cross-Browser Compatibility

Modern CSS gradients (linear-gradient, radial-gradient, conic-gradient) are supported in all current browsers: Chrome, Firefox, Safari, Edge, and their mobile counterparts. Conic gradients have slightly more recent support but cover all browsers released in the last 4 years. The CSS this generator produces uses standard syntax without vendor prefixes — the old -webkit-linear-gradient prefixed form is no longer needed for supported browsers.

Verified by ToollyX Team · Last updated June 2026

Frequently Asked Questions

Disclaimer: Gradient CSS is generated entirely in your browser. No data is transmitted anywhere.