2. Select the magic eraser tool.
3. Click in the background and the layer will be transparent.
4. Select the desired foreground color under the editing conditions of the new layer.
5. Select the paint bucket tool and fill it with color.
6. Pull the new background layer down to the bottom of the layer, and the color change is completed.