Customizable Color Picker

I’m building a web app, and I’m wanting to put in a color picker. However, I want to limit the color options to a limited set of colors. Specifically, I’ll be identifying what hex colors most closely match up to available DMC embroidery thread, and I want the color picker to only show those colors. I’ve searched for configurable color pickers, but so far all the ones I’ve found don’t allow you to limit the available colors. Does anyone know of a color picker that allows for that kind of configuration?