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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.