<span style="color: #<?php echo $this->gradientBuilder->create('#000000')
    ->to('#ff0000', 100)
    ->build()
    ->colorAtPercentile(((int)$object->value()))
    ->toHex() ?>">
    <?php echo $this->nodePrinter->print($object) ?>
</span>

