glShadeModel(GL_FLAT)
will fill in your primitives with the color associated with the last vertex in each primitive.
glShadeModel(GL_SMOOTH)
will linearly interpolate the colors of the vertices.