JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<label id="test_wrapper"><input id="inp" type="color"></label>
CSS
#inp{
visibility:hidden;
}
#test_wrapper{
background-color:black;
height:32px;
width:32px;
position:fixed;
}
JavaScript
$(document).on('change','#inp',function(){
$("#test_wrapper").css('background-color',""+document.getElementById('inp').value);
});