Linear Gradients Follow an Axis
A linear gradient moves along a straight line. In CSS, 0deg points up and increasing angles rotate clockwise, so 90deg points right and 180deg points down.
Free online CSS tool - no registration or login
Build linear, radial, or conic gradients with two to six color stops. Preview the result live, adjust the relevant direction or origin, and copy ready-to-use CSS without signing in.
Interactive CSS workbench
Two to six stops, kept in position order.
Enter an opaque #RGB or #RRGGBB color.
Enter an opaque #RGB or #RRGGBB color.
Enter an opaque #RGB or #RRGGBB color.
.gradient-background {
background-color: #0F766E;
background-image: linear-gradient(135deg, #0F766E 0%, #F59E0B 52%, #172033 100%);
}The preview and both copy actions use the same generated gradient value.
The editor runs in this browser tab. It does not upload colors or generated CSS, and no account is required.
Move from a gradient type to ordered color stops, a real browser preview, and CSS you can paste into a stylesheet.
Use linear for a directional fade, radial for a center-out effect, or conic for a sweep around an origin.
Enter valid HEX colors, position each stop, and adjust the angle, shape, or origin shown for the selected type.
Review the browser-rendered surface, then copy the complete rule or only the gradient function for your stylesheet.
The three CSS gradient functions describe different paths through the same ordered color stops. Start with the geometry that matches the intended surface.
A linear gradient moves along a straight line. In CSS, 0deg points up and increasing angles rotate clockwise, so 90deg points right and 180deg points down.
A radial gradient grows outward as a circle or ellipse. Move its origin to place a spotlight near the center, an edge, or a corner.
A conic gradient rotates colors around an origin. It works well for decorative sweeps, but an unlabeled CSS background is not an accessible data chart.
Color stops anchor colors at exact points. Their order and spacing determine where each transition starts, accelerates, or becomes more concentrated.
Edit the color stopsType #RGB or #RRGGBB, or use the native color picker. An invalid draft does not replace the last valid color used in the preview.
Stops stay in ascending order from 0% to 100%. Move neighboring stops closer for a quicker transition or farther apart for a longer blend.
Every preset remains editable. Reverse the color order, generate new colors, or reset to the initial gradient without reloading the page.
The copied rule is intentionally small: a solid fallback followed by the exact gradient value shown in the preview.
Place background-color before background-image so a usable solid color remains if the gradient declaration is unavailable. Review that fallback in context too.
CSS gradients are image values. Use the generated function with background-image or a background shorthand, not as a background-color value.
A CSS gradient has no natural width or height; it renders to the element it is applied to. Test it on the actual card, button, banner, and responsive sizes.
A valid gradient declaration can still fail in context. Review contrast, meaning, and every responsive or interactive state before shipping it.
Contrast can change from one side of the surface to the other. Test text against the least favorable relevant areas and recheck hover, focus, and selected states.
CSS background images provide no native alternative text. Add labels, values, or another accessible representation whenever the colors communicate meaning.
This focused generator does not create alpha colors, repeating or layered gradients, custom interpolation spaces, image files, or framework-specific classes.
Direct answers about gradient types, angles, color stops, copied output, privacy, transparency, and accessibility.
Yes. You can create, preview, and copy CSS gradients without registering, signing in, or unlocking the result.
The generator supports linear-gradient(), radial-gradient(), and conic-gradient(). Each type shows only the controls that affect its output.
You can use two to six opaque color stops. Each stop accepts #RGB or #RRGGBB input and a position from 0% to 100%.
For linear gradients, 0deg points upward, 90deg points right, 180deg points down, and 270deg points left. Conic gradients use the angle as the starting rotation around the selected origin.
Yes. Radial and conic modes let you place the origin at the center, an edge, or a corner. Radial mode also lets you choose a circle or ellipse.
Yes. Copy the complete class rule when you need a solid fallback, or copy only the gradient function when you are placing it into an existing declaration.
The background-color line provides a simple fallback before background-image applies the gradient. Review that fallback color against any text or controls placed on it.
No. This version intentionally accepts opaque #RGB and #RRGGBB colors only. It does not generate alpha, repeating, layered, or custom color-space gradients.
A decorative gradient can be appropriate, but background images are not announced by screen readers and contrast can vary across the surface. Do not use a gradient as the only representation of meaningful data, and test text against the least favorable relevant areas.
No external service is used for the editor. Your settings remain in the current browser tab and reset when the page is reloaded.
Choose a color, check solid-color contrast, style a shadow, or optimize an SVG for the same interface.
Pick a color visually or enter a HEX value, then fine-tune RGB, HSL, and opacity. Preview the result, compare nearby tones, and copy the exact color code with no login.
Open toolTest text and background colors against WCAG 2.2 AA and AAA. See the exact contrast ratio, preview the selected font size and weight, and identify whether the pair passes.
Open toolCreate layered CSS shadows with up to four editable layers. Adjust offsets, blur, spread, color, opacity, and inset mode, preview the result, and copy the CSS without login.
Open toolUpload or paste SVG markup, optimize it locally with SVGO, and compare the code, file size, and visual result before downloading. No login or server upload required.
Open toolChoose the geometry, tune each stop, and copy the exact CSS shown in the preview.