A color stop is a color paired with a percentage position from 0% to 100%, and the browser interpolates the gradient between those stops.
When you use a CSS gradient generator to build a color gradient, each stop becomes an editable landmark on the gradient path. Its position determines where that color appears, while the distance to the neighboring stops determines how broadly the browser blends between them. For a visual way to test these relationships, the Color Gradient Generator lets you edit stops, inspect the result, and copy the resulting CSS.

Color stops define the gradient's landmarks
A stop has two connected parts: a color and a position. The color tells the browser what to display at that landmark, and the percentage tells it where the landmark belongs along the gradient. The browser then fills the space between adjacent stops by smoothly interpolating their colors.
Two stops create the simplest structure: a continuous fade from the first color to the second. Adding a third or fourth stop gives you more control because you can introduce or hold a color at a particular point. That changes the result from one broad blend into multiple connected blend sections.
For example, linear-gradient(90deg, #ff0000 0%, #00ff00 50%, #0000ff 100%) places red at the starting edge, green at the midpoint, and blue at the ending edge. The browser blends red into green over the first half of the line, then blends green into blue over the second half.
| Stop arrangement | Rendering behavior | Useful for |
|---|---|---|
| Two stops at 0% and 100% | Creates one continuous fade across the full gradient path. | Simple backgrounds, buttons, and subtle color transitions |
| Three stops with a middle stop at 50% | Splits the path into two blend sections, with the middle color located at the midpoint. | Multi-band gradients and a distinct central color |
| An additional stop between existing stops | Divides one broad transition into two separately controlled transitions. | Changing the pace or direction of a color blend |
| Stops placed close together | The color changes over a narrow section of the path. | A quicker transition or sharper-looking color division |
| Stops placed farther apart | The color has more room to blend across the path. | A smoother, more gradual transition |
The important relationship is the interval between stops, not just the position of one stop in isolation. Moving one stop changes the distances on both sides of it, so the browser adjusts the surrounding transitions accordingly.
Position percentages measure progress, not screen coordinates
A stop's position is relative to the gradient path defined by the gradient function. It is not an absolute horizontal or vertical coordinate on the page. For a linear gradient, 0% marks the beginning of the line and 100% marks its opposite end. For a radial gradient, 0% corresponds to the center and 100% to the outer end of the radial ramp.
The midpoint percentage falls halfway along the defined path. That means a 50% stop in a horizontal linear gradient appears in the middle of the element from left to right, but the same percentage in a vertical gradient appears halfway from top to bottom. In a radial gradient, it describes how far outward the color appears from the center.
The linear-gradient angle controls the direction of that path without changing the stop percentages. In the generator, 0deg points toward the top, 90deg points toward the right, and 180deg points toward the bottom. Rotating the angle therefore rotates the entire sequence of stops and their transitions. The radial option instead creates a center-out blend, so the angle setting applies to linear gradients.
Stops are arranged by their numeric positions rather than by the order in which you add them. The generator automatically re-sorts stops by position and clamps every position into the valid 0–100% range. This keeps the generated code ordered and valid even when you drag or rearrange the controls.
Linear and radial gradients use the same stop logic
Both gradient types use the same core relationship between a color and its percentage position. Their geometry and practical uses differ, however, so the same position can look quite different in each mode.
| Feature | Linear gradient | Radial gradient |
|---|---|---|
| Gradient path | A straight line running in the selected direction | A circular blend extending outward from a center point |
| Main directional control | The angle, together with the stop positions | The outward sequence of stop positions |
| How a position is read | Progress along the angled line | Progress outward along the radial color ramp |
| Typical uses | Page backgrounds, section fills, and buttons | Spotlights, soft glows, and decorative vignettes |
Choose linear when the color movement should follow a predictable direction across an element. Choose radial when the design needs to draw attention toward a central point or fade outward from it. In both modes, moving a stop changes where its color is placed, while changing the color value changes the hue at that same location.
Build a gradient with controlled stop positions
- Choose the gradient type. Select Linear for a directional fade or Radial for a center-out blend. Decide which geometry matches the element before positioning the colors.
- Set the first two colors. Choose a color for each initial stop and use the position sliders to place them along the gradient. For a blend that covers the complete path, position the first stop at 0% and the last stop at 100%.
- Add intermediate stops where needed. Add a stop, select its color, and drag its position slider. A stop at 50%, for example, places that exact color halfway along the defined path and separates the fade into two intervals. Remove any stop that is no longer needed.
- Arrange the stops numerically. Drag or reorder them if necessary. The generator sorts them by position automatically, so the stop nearest 0% appears first and the one nearest 100% appears last. Positions outside the supported range are clamped to 0–100%.
- Adjust the linear angle when appropriate. For a Linear gradient, move the angle control to set the direction of the blend. For a Radial gradient, leave the angle unchanged because the supported radial workflow is a center-out circular blend.
- Preview and copy the result. Check the live preview to confirm the transitions and stop placement. When the result looks right, click Copy CSS to copy the complete background declaration for your stylesheet.
Read the copied CSS before you paste it
The code panel prints the full declaration in the form background: linear-gradient(...); or background: radial-gradient(...);. The colors and percentage positions inside the function correspond to the stops you edited, and the stops appear in position order.
Read the declaration from left to right to confirm its structure. The gradient type comes first, followed by settings such as the angle and then the ordered color stops. A linear declaration may resemble background: linear-gradient(90deg, #ff0000 0%, #00ff00 50%, #0000bb 100%);. Paste that value into the CSS rule for the element you want to style.
The live preview shows the same rendered result that the copied declaration produces. This makes it possible to check whether a stop introduces the intended color band before committing the code. Because the output is plain CSS rather than an exported image, it remains sharp at different element sizes and screen densities.
Fix confusing stop-position results
The gradient appears reversed
Reversal usually comes from the linear angle rather than the stop positions. Rotating the angle changes the direction of the whole path while preserving the sequence of colors. If the intent is to reverse the blend, adjust the angle first rather than rearranging every stop.
One color occupies more space than expected
Each color's visible share depends on the distance to its neighboring stops. If the middle color dominates, move its dividing stop toward the color it should replace. If a color vanishes too quickly, bring its stop closer to the adjacent stop so the browser has less distance in which to interpolate.
The transition appears too abrupt
Stops placed very close together create a narrow color change. Move them farther apart to give the browser more of the gradient path over which to blend. A transition that looks too gradual usually needs the opposite adjustment: bring the relevant stops closer together.
A stop will not move beyond the boundaries
The supported position range is 0–100%. The generator clamps an edited value into that range, so a stop moved past an endpoint settles at the closest valid boundary. This prevents invalid positions from reaching the copied CSS.
The stop is not where the screen coordinate suggests
Percentages follow the gradient's own path, not the element's width and height independently. A stop at 50% is centered along that path. Change the gradient type or angle if you expected the stop to follow a different visual direction.
Know the generator's supported output
The supported workflow covers linear and radial gradients, including color selection, editable stop positions, an angle for linear gradients, a live preview, and one-click CSS copying. It does not provide a conic-gradient mode, so a conic design requires a different CSS workflow.
The generated gradient is a standard CSS background value rather than a raster image. Linear-gradient() and radial-gradient() work in current browsers without vendor prefixes, external libraries, or a build step, and the gradient itself requires no network request. The generator also runs locally in your browser, so the colors and stops you design are not uploaded to a server.
If you're weighing options, When Should You Generate a CSS Checkbox? covers this in detail.
If you're weighing options, When to Generate CSS Cubic Bezier Instead of Typing It covers this in detail.