We have new COLOR type in input tag in HTML5. This is used to take color code as input from user.
When we click in this type, it will show color box and user can select color and it will return color code.
We just need to apply <input type=color >
Note: Doesn’t support all browsers