CSS Paleta de Colores

Tutorial | CSS

Ejemplo seleccionar color

Color seleccionado: #ff0000

Code:

<input type="color" id="colorPicker" name="colorPicker" value="#ff0000">
<p>Color seleccionado: <span id="selectedColor">#ff0000</span></p>

<script>
  const colorPicker = document.getElementById('colorPicker');
  const selectedColor = document.getElementById('selectedColor');

  colorPicker.addEventListener('input', function() {
    selectedColor.textContent = colorPicker.value;
  });
</script>
Tutorial | CSS