Random background color and text (jQuery)

HTML

<div class="monobg">
</div>
<p>Some text</p>

CSS

.monobg {
    height: 20px;
    width: 20px;

}

JavaScript

jQuery(function($) {
        var css = Math.floor((Math.abs(Math.sin() * 16777215)) % 16777215).toString(16);
        $(".monobg").css({'background-color' : '#' + css});
        
});