How do I get the RGB value of a mesh at runtime?

You Set the material parameter, you can Get it the very same way - that’s your colour.