With an additional plugin it's possible to render vertex colors of mesh with freestyle.
Download blender addon
To enable vertex color rendering go to Viewlayer > Linestyle → Freestyle color: