Build a gradient with a live preview.
—
Add colour stops, drag their position and the angle, and copy the linear- or radial-gradient rule. The preview is the exact CSS your browser will paint.