Why use this tool?
- Position color stops visually and fine-tune their percentages.
- Compare gradient geometry and color interpolation in one preview.
- Create scalable backgrounds without exporting a bitmap image.
Create CSS gradients with draggable color stops, transparency, and sRGB, Oklab, or OKLCH blending. Preview linear, radial, conic, and repeating gradients.
Runs locally in your browser
Type
Blend in
Saturation 84 percent, brightness 81 percent, hue 272 degrees.
Drag a handle to move it. Click the ramp to add a stop.
background: linear-gradient(135deg, #7E22CE 0%, #00C7A3 100%);Complete tool guide
Build a CSS gradient with multiple color stops and a live preview. Choose linear, radial, or conic geometry, adjust transparency and interpolation, and copy CSS, a Tailwind arbitrary-value class, or the gradient settings as JSON.
Your input is processed in the current browser tab and is not sent to the application server.
Choose linear, radial, or conic.
Drag the handles on the ramp to move color stops, and click the ramp to add one.
Set the angle with the dial, or drag the center marker on the preview.
Copy the generated CSS, Tailwind class, or JSON token.
Linear gradients follow an angle; radial gradients spread from a center; conic gradients rotate around a center. The center controls apply to radial and conic gradients.
A stop contains a color and position. Two different colors at the same position create a hard transition. Alpha lets a background image or lower layer show through.
The sRGB option omits an explicit interpolation clause; Oklab and OKLCH add one. Repeating mode repeats the interval between the first and last stops.
Start with: Two opaque stops: #000000 at 0% and #FFFFFF at 100%
background: linear-gradient(90deg, #000000 0%, #FFFFFF 100%);The gradient runs from black on the left to white on the right. A single text color may not contrast sufficiently across its full width.
Start with: Two opaque stops: #0000FF and #FFFF00
background: linear-gradient(90deg, #0000FF 50%, #FFFF00 50%);Equal positions create a hard boundary with no transition interval. Change the shared percentage to move the split.
For a linear gradient, 0deg points up, 90deg points right, and 180deg points down. The preview size also affects the apparent direction of diagonal color boundaries.
Compare sRGB, Oklab, and OKLCH with your actual stop colors. Their paths through color space can produce different midpoints; no option guarantees a brighter or more legible result.
Check contrast across the entire area occupied by the text, including intermediate colors and underlying content visible through transparency. Checking only the endpoints can miss a weak region.
Select a stop and lower its alpha. Transparency reveals the backdrop, so preview the exported gradient over the actual image or surface.
Subtle ramps can expose limited color precision in the display or rendering pipeline. Test the final size and device; a carefully chosen texture can mask visible bands.
Copy the Tailwind output as a literal class in a source file that Tailwind scans. Dynamically assembled class names may need explicit source configuration.
Keep working
Continue with another focused tool from the same collection.