<style>
div {
width: 200px;
height: 200px;
border-radius: 10px;
background-color: #fff;
}
</style>
<div></div>
<input type="range" min="0" max="255" value="0">
<input type="range" min="0" max="255" value="0">
<input type="range" min="0" max="255" value="0">
<script>
var div = document.getElementsByTagName('div')[0]
var input = document.getElementsByTagName('input')
for (var i = 0; i < input.length; i++) {
input[i].oninput = function () {
div.style.backgroundColor = 'rgb(' + input[0].value + ',' + input[1].value + ',' + input[2].value + ')'
}
}
</script>