JSFiddle - React, Tailwind, and code Playground
HTML
<form action="mailto:[email protected]" enctype="text/plain">
<legend>Контактная информация</legend>
<p><label for="name">Имя <em>*</em></label><input type="text" id="name"></p>
<p><label for="email">E-mail</label><input type="email" id="email"></p>
<input type="color" name="color">
<p><input type="submit" value="Отправить"></p>
</form>
JavaScript
$("input[type=color]").change( () => {
$('body').css('background-color', $("input[type=color]").val());
} );