diff --git a/inc/template.php b/inc/template.php
index b9fe9608517d190d4bcdd434d95d9e11e0974565..659d5904930655b7456620d9e2208167b3ea328b 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -246,6 +246,13 @@ function tpl_metaheaders($alt = true) {
         $head['link'][] = array('rel'=> 'manifest', 'href'=> DOKU_BASE.'lib/exe/manifest.php');
     }
 
+    $styleUtil = new \dokuwiki\StyleUtils();
+    $styleIni = $styleUtil->cssStyleini($conf['template']);
+    $replacements = $styleIni['replacements'];
+    if (!empty($replacements['__theme_color__'])) {
+        $head['meta'][] = array('name' => 'theme-color', 'content' => $replacements['__theme_color__']);
+    }
+
     if($alt) {
         if(actionOK('rss')) {
             $head['link'][] = array(