Color intensity increases when converting PKDrawing data to uiimage

I am trying to convert PKDrawing data to uiimage. Thus I've used apple's API PKDrawing data to uiimage. But the colour intensity of the converted image increases surprisingly.

I mean there is a difference between the canvas data and the converted uiimage. What could be the reason behind that?

Here is the scenario

Preview Drawing Data on CanvasView

Preview after converting Drawing Data to uiimage

Maybe I am totally wrong here, but it looks light the color got converted to dark mode. You can specify the user interface style when drawing the UIImage. I hope this helps.

Color intensity increases when converting PKDrawing data to uiimage
 
 
Q