define( 'WP_DEBUG', true );
I take a message :
Invalid characters passed for attempted conversion, these have been ignored in line
$red = hexdec(substr($hex, 0, 2)) / 255;
Let’s say that turn of the ‘WP_DEBUG'
then it gave the same results. hsl(137, 99%, 42%)
instead of hsl(258, 83%, 45%)
I believe that the function gave me wrong results.. 🙁