To create a purple gradient in photography, you can use photo editing software such as Adobe Photoshop or GIMP. First, create a new image or layer with a solid purple color. Then, use the gradient tool to select a purple gradient and apply it to the layer. Adjust the gradient's direction and opacity for desired effects.