P5 gradient refers to the use of gradients in the P5.js library, a popular JavaScript library for creative coding. Gradients are used to create smooth transitions between colors on a canvas. In P5.js, gradients can be applied to fill or stroke shapes, and various types of gradients such as linear and radial can be created.