Accessing material color palette

I’m working on a visualisation tool that (hopefully) allows users to choose an element (such as walls, doors, floor etc) and change the color via the material color palette. I’d like to make this as simple to use as possible so all I want to show is the color palette (not the entire materials button screen. Is this possible?
Thanks for any help.