convert Hsl to rgb and hex
New approach (inspired by @Kamil-KieĹ‚czewski solution) Takes degree, percentage, percentage and returns css hex color: function hslToHex(h, s, l) { l /= 100; const a = s * Math.min(l, 1 – l) / 100; const f = n => { const k = (n + h / 30) % 12; const color = l – … Read more