To change the background color:

Choose Preview > Preferences and then click General.

Click “Window background.”
By default, Preview shows a gray background behind images and PDF files. If you expand the window larger than the size of the document, or if the image has transparent sections, you can see the background color.
Choose Preview > Preferences and then click General.
Click “Window background.”