Do you transform your hue values into hex representation ? It's actually more straightforward than you believe ! Basically, RGB uses a shade using red , green , and blue elements , each with a number https://emilierobw041694.pointblog.net/translating-rgb-to-codes-a-easy-explanation-95072993