Interpolate color in plane

Hello, I am trying to interpolate the colors of the vertices, because I need each triangle to obtain a single color, preferring a color if there are 2 vertices with the same color.

The surface is a geometric plane, which is not indexed.

Is there an option that allows me to do this. Thanks so much for any help