A simple colour selection tool that uses SVG.
See the example demo
See example.html.
Add the JS and CSS.
Add the icon, or button, to use to open the SVG palette. You must also indicate what function to call with the retrieved value.
The second parameter of PL.openPl(function, active_mode) determines whether the colour is sent back when mousing over the palette (true) or just when clicked upon (false).
The palette will be hidden initially (CSS). Decide where and how you would like to display the SVG palette.