Multimaterial for instant meshes

I guess there would be several millions of mesh instances. And I need to mix about 10 colours in specified percentage to see the final color of this mix in big area
Example:
111