Home › Forums › Front-end Issues › Convert hexadecimal value to HSL › Reply To: Convert hexadecimal value to HSL
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.. 🙁
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.