JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div class="mostraDiv"></div>
</div>

CSS

.container{ 
    height:200px;
    width:300px;
    background-color: rgb(255, 177, 0);
}
.mostraDiv {
    height:150px;
    width:250px;
    background-color:royalblue;
}

JavaScript

var containerDiv = $('.container');

if (containerDiv.css('background-color') == 'rgb(255, 177, 0)') {
    $('.mostraDiv').show();
} else {
    $('.mostraDiv').hide();
}