I've had fine results for rainbows from my KP just with the camera set to the "P" mode, and JPEG images with the usual segmented metering. Custom Image processing set to the most common "Bright" category. Your shots were definitely overexposed. And I agree a UV filter would not be a good idea, and a polarizing filter worse.
---------- Post added 08-30-20 at 09:19 PM ----------
Originally posted by thazooo Chimp. Take your shot, Chimp it and the Histogram. Adjust and shoot again. Rainbow is Landscape so you have the time for a Chimp and adjust. I do it every time
Yep- check results and change exposure accordingly I generally expose for the scene below the rainbow because I plan to have the rainbow over that scene anyway, then adjust accordingly. If in "P" mode, I just use the +/_ exposure comp button.