JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container"></div>
CSS
#container {
background-color: rgb(121,204,135);
height: 200px;
width: 200px;
}
JavaScript
var r = Math.floor(Math.random() * (255 - 0) + 0);
var g = Math.floor(Math.random() * (255 - 0) + 0);
var b = Math.floor(Math.random() * (255 - 0) + 0);
var color = "rgb("+r+","+g+","+b+")"
console.log(color);