Edit Lottie JSON object colours

Lottie JSON files use 0-1 instead of 0-255, so given any hex colour we can convert like so:

<?php

$color = 'FFAABB'; // for example

$r = \hexdec(\substr($color, 0, 2))/255;
$g = \hexdec(\substr($color, 2, 2))/255;
$b = \hexdec(\substr($color, 4, 2))/255;

echo "red is $r\n";
echo "green is $g\n";
echo "blue is $b\n\n";

Give it a shot here https://3v4l.org/t3BIJ