Support

Account

Home Forums Front-end Issues Convert hexadecimal value to HSL Reply To: Convert hexadecimal value to HSL

  • What about:

    
    <?php 
    $hex = get_field('hex_color');
    $hex = str_replace('#', ''. $hex);
    echo hexToHsl($hex);
    ?>