I create marker like this:
let marker = GMSMarker() marker.icon = GMSMarker.markerImage(with: color)
lets say color is (RGB): 254, 247, 120