Color Palette Generator
Create complete color palettes and export the colors for CSS or Tailwind projects.
Create linear, radial, conic, and repeating gradients without hand-writing complex CSS. Start in Basic mode, or use Advanced mode to control every color stop, angle, center, radius, interpolation space, transition hint, and CSS value. Preview the result instantly, then copy production-ready CSS or Tailwind code. Free and no sign-up required.
background-image: linear-gradient(135deg, #5266d9 0%, #c9b3ee 50%, #f58a66 100%);Create custom gradients in three simple steps:
Every change should appear in the preview immediately, making it easier to experiment with complex gradients without repeatedly editing CSS by hand.
CSS gradients are generated images created by the browser. They scale cleanly across screen sizes and can be used for backgrounds, buttons, cards, text effects, charts, decorative elements, and application interfaces.
This generator supports linear, radial, conic, and repeating gradients in one editor.
A linear gradient blends colors along a straight line. Choose a preset direction or define an exact angle to control how the colors move across the element.
Use linear gradients for:
Advanced mode supports exact angles using degrees, turns, radians, gradians, CSS variables, and CSS expressions.
Example output:
background-image: linear-gradient(
135deg,
#5266d9 0%,
#c9b3ee 50%,
#f58a66 100%
);A radial gradient starts from a center point and spreads outward in a circular or elliptical shape.
Use the radial gradient controls to customize:
Radial gradients work well for spotlights, glows, soft backgrounds, depth effects, focus areas, and layered interface designs.
A conic gradient rotates colors around a center point instead of moving them along a straight line or outward from the center.
Control the starting angle, center position, individual color-stop angles, and interpolation behavior.
Conic gradients are useful for:
Example output:
background-image: conic-gradient(
from 0deg at center,
#5266d9 0%,
#c9b3ee 50%,
#f58a66 100%
);Enable repeating mode to repeat the selected linear, radial, or conic gradient pattern.
Repeating gradients can create:
The generated result uses the appropriate repeating-linear-gradient(), repeating-radial-gradient(), or repeating-conic-gradient() CSS function.
Add, remove, reorder, and position multiple colors to create anything from a simple two-color fade to a detailed multi-color gradient.
Basic mode provides quick percentage-based controls. Advanced mode provides exact control over:
Two-position color stops can create solid bands inside a gradient. Matching adjacent stop positions can produce hard edges rather than smooth transitions.
Advanced mode allows the gradient to be interpolated in different color spaces.
Available options include:
The selected interpolation space can significantly change how colors blend. OKLab and OKLCH can produce more perceptually consistent transitions, while Display P3 can represent a wider color range on supported displays.
When a polar color space is selected, use the available hue-route controls to customize how the gradient moves around the color wheel.
The generator produces copy-ready CSS using the background-image property.
For Tailwind projects, it generates an arbitrary-value class that can represent complex linear, radial, conic, repeating, and multi-stop gradients that may not fit the basic from, via, and to utilities.
Example Tailwind JSX output:
className={
"bg-[image:linear-gradient(135deg,_#5266d9_0%,_#c9b3ee_50%,_#f58a66_100%)]"
}The generated class can be copied directly into React or Next.js JSX. Always preserve the complete generated arbitrary value because spaces and special characters must be escaped correctly for Tailwind.
Preview the same gradient as a:
Preview shapes help test how a gradient behaves across different visual surfaces. Changing the preview shape does not modify the exported CSS or Tailwind gradient code.
The RazSoft gradient generator combines a quick visual workflow with advanced CSS controls.
Use Basic mode when you need to create a gradient quickly. Switch to Advanced mode when you need exact control over geometry, color interpolation, stop positions, transition hints, CSS variables, or modern color spaces.
The tool is useful for frontend developers, Tailwind developers, UI designers, students, and anyone who wants to experiment with CSS gradients while still receiving production-ready code.
A CSS gradient is a browser-generated image that creates a transition between two or more colors. Gradients can be used anywhere CSS accepts an image, including backgrounds. The primary gradient functions are linear-gradient(), radial-gradient(), and conic-gradient().
A linear gradient moves colors along a straight line. A radial gradient spreads colors outward from a center point. A conic gradient rotates colors around a center point, similar to the colors around a wheel.
Yes. Design the gradient visually and select the Tailwind output option. The generator produces a Tailwind arbitrary-value class containing the complete CSS gradient, including custom colors, positions, angles, and geometry.
Yes. Use the Add Color control to create a multi-color gradient. Each color can have its own position and opacity, and the stops can be reordered.
Yes. Basic mode provides percentage-based positions, while Advanced mode supports percentages, lengths, angles, viewport units, container units, CSS variables, and custom expressions where the selected gradient type permits them.
A two-position color stop assigns a beginning and ending position to the same color. This creates a solid color section inside the gradient before it begins transitioning to the next color.
A transition hint changes where the visual midpoint between two colors appears. It provides more control over the progression between adjacent color stops without adding another color.
Yes. Advanced mode can produce repeating linear, radial, and conic gradients for patterns such as stripes, rings, and sunburst effects.
OKLCH is a perceptual color space designed to make changes in lightness, chroma, and hue behave more consistently with human vision. Depending on the colors, an OKLCH gradient may look smoother or more balanced than the same gradient interpolated in sRGB.
No. These shapes are preview surfaces only. They help users see how a gradient behaves on different shapes, but the exported gradient code remains the same.
Yes. The RazSoft CSS and Tailwind gradient generator is free to use and does not require an account.