How to Change Black-and-White Picture Lines to Purple in Excel
Question details
The user needs to recolor the black lines of a black-and-white picture to solid purple in Excel without changing the background or creating a splatter effect.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- While formatting a worksheet, the user inserted a black-and-white line image and wants only the dark lines to become solid purple.
- Observed behavior
- Excel's Recolor options change the background or create an unwanted splatter effect instead of recoloring the lines.
Have the original image file available and open WPS Office Spreadsheets or Excel. Check whether the image has a clean white background, because solid-color backgrounds are easier to remove before recoloring.
Edit the Black-and-White Image in an Image Editor Before Inserting It
Use this when you need reliable solid purple lines without affecting the white background; Excel cannot create arbitrary color mappings from the Recolor gallery.
Excel's Recolor gallery contains fixed presets and does not separate foreground lines from the background. Editing the image first gives you precise control over the line color.
Open the image in an editor such as Paint, Photoshop, GIMP, or Photopea.
Use the magic wand or color range selection to select the white background, then delete it or add a transparency mask so only the dark line work remains.
Select the remaining dark pixels and apply a purple fill or color overlay, such as RGB 128,0,128, until the lines are solid purple.
Save or export the edited image as a PNG file to keep the transparent background.
In Excel or WPS Spreadsheets, go to Insert > Picture > This Device, choose the PNG, and place it in the worksheet.

Use WPS Office Spreadsheets After Recoloring the Image
Microsoft Excel's Recolor gallery cannot recolor only the foreground lines. WPS Office Spreadsheets is a free, lightweight alternative that opens Excel files, preserves PNG transparency, and gives you a familiar interface for placing the recolored image.
- 1. Download WPS Office: Go to the official WPS Office website and click Download WPS Office Free.
- 2. Install and open WPS Office: Run the installer, then open WPS Office Spreadsheets.
- 3. Open the edited PNG: Click Insert > Picture > From File and choose the purple-line PNG.
- 4. Position the image: Drag the image into place and resize it using the corner handles.
- 5. Save as an Excel-compatible file: Click Menu > Save As and choose .xlsx to share with Microsoft Excel users.

Frequently Asked Questions
Can Excel's Recolor gallery change only the black lines to purple?
No. Excel's Recolor gallery applies fixed presets and does not separate foreground lines from the background, so it often recolors the background or creates a splatter effect.
Which image format should I use for a transparent background in Excel?
Use PNG. Save the edited image with transparency from the image editor, then insert it via Insert > Picture > This Device in Excel or WPS Spreadsheets.
Will this method work in WPS Office Spreadsheets?
Yes. Insert the edited PNG into WPS Office Spreadsheets through Insert > Picture > From File; the transparent background will be preserved.
Can I make the white background transparent directly in Excel?
Excel does not offer a true background removal that recolors dark lines to purple. Use an image editor for the recoloring, or use Set Transparent Color only for a single-color background.
What purple color value should I use for the lines?
Any solid purple works. For a standard result, use RGB 128,0,128 or choose a purple fill in the image editor's color picker.




