How This Tool Works
The CSS Gradient Generator creates a linear-gradient() declaration from two 6-digit HEX colors. Pick a start color, pick an end color, choose the number of color stops, and select the direction for the gradient preview.
The tool interpolates the intermediate colors evenly between the two endpoints and formats the result as copy-ready CSS.
- Input: Start color, end color, stop count, and linear direction.
- Process: RGB channel interpolation across evenly spaced stops.
- Output: A live preview, generated stop list, and CSS background declaration.