I have this code and it should just work and echo the thing but it doesn't
<!DOCTYPE html>
<html>
  <body>
      <div id="colo" style='color:rgb(24, 209, 95)'>Yeet</div>
      <div id="color"></div>
      <button onclick="color();" style='width:100px; height: 75px;'></button>
    <script type="text/javascript"> 
      function color(){
        var rgb = document.getElementById("colo").style.color; 
        document.getElementById("color").innerHTML = rgb;
      }  
    <?php $abc = "<script>document.write(rgb)</script>"?>   
      </script>
<?php echo $abc;?>
  </body>
</html>
I tried placing the variable different but no
 
    
