That’s quite strange, as I can load your second image via PIL.Image.open and visualize it in PIL as well as matplotlib to get the same output.
Did you change any colormaps in matplotlib or loaded any other template (e.g. via seaborn)?