How to color vertices of a cube?
You can use Vertex Paint


Select the cube and toggle Vertex Paint





Set a color from the Tools Panel on the left, then click a vertex to apply. Repeat for every vertex



INTERNAL RENDER

Check Vertex Color Paint in the Material Panel to render Vertex Colors
 

CYCLES RENDER

In Node Editor: Add > Input > Vertex Colors > select Vertex Color Layer...