How can I create a gradient that spreads from the center in scatter plot?

I have a .csv of a 3D scan with XYZ coordinates being displayed as a 3D scatter plot. I want the color to change as the points get farther from the center. How can I do this?

This might have already been asked but I wasn’t sure how to phrase it.