You can use the input element’s ‘color’ type to create an RGB (red, green, blue) color selector.
<input name="myColor" type="color">