Is it possible to add a color picker as input on a form?

I want users to be able to select a color and have the color hex code be passed through to the form submission. Is this possible?

I know there are a few js color pickers out there but I’m not sure how I’d integrate them.