CSV to MultiArray generates grey image

I have a csv file with values ranges between 0-1. When converted this csv values to MLMultiArray and then to UIImage it shows grey image. But the image is actually coloured. So is there any step missing or do I have to perform any more action to get this image to be coloured.

Sample csv values - [0.556862745 0.62745098 0.811764706]