<div id="box"></div>
<p id="disp"></p>
#box {
  background-color: #eef0e1;
  width: 250px;
  height: 200px;
}
let box = document.getElementById('box');
let GetBgColor = window.getComputedStyle(box, null).getPropertyValue('background-color');

let disp = document.getElementById('disp');
disp.innerHTML = 'background-color ' + GetBgColor;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.