A gradient is a trip through a colour space. Pick your colours and path to visualise it.
Colours
Cubehelix spirals through RGB from black to white. Its perceived brightness rises monotonically.
Path
View
RGB
RGB represents colours using three values, red, green and blue, mapped as Cartesian coordinates (x, y, z) within a cube.
HSL
HSL uses cylindrical (polar) coordinates: hue is an angle, saturation is the distance from the centre, and lightness is the vertical axis. Gradients can travel around the hue angle, creating an arced colour path.
OKLab
Both OKLab and OKLCH represent the same perceptually uniform colour space, mapped differently. OKLab uses Lightness plus two axes: the a axis (green → red) and the b axis (blue → yellow). OKLCH uses Lightness, Chroma and Hue.