Check out example codes for "html5 color picker". It will help you in understanding the concepts better.

Code Example 1

<input id="colorPicker" type="color" value="#ff0000">

Code Example 2

pycharm = #4a4a42
indigo = #0ef0d2
blue(dark ) = #1215de
blue (light ) = #229ce3
red = #de120b
pink = #e809e1
purple = #9010eb
green (dark) = #1aff00
green (light) = #76e83c
orange = #eb7b0c
yellow = #e9ed09

Learn ReactJs, React Native from akashmittal.com