RGB coordinate assignment to a new material

Do make sure to search before asking. Quite a lot of threads on this.

Generally you will either need to use custom nodes or Python I believe, unless they have added material modify/create nodes out of the box.