Create a list of defined color

Hello, I would like to give the possibility to select a color for a tile (aka project) from a defined color list is it possible?
If not how can I assign a random color to a specific tile?

Thank you.