Below is reference
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$('#btnSubmit').click(function(){
alert( $('#colorId').val());
});
});
</script>
<input type="button" id='btnSubmit' class="btn btn-default" value='Get Color Code' />
<input type="color" class="form-control" id="colorId">