Why it generates in HSL
Picking three random bytes gives you a random colour, but mostly a muddy one. Choosing a hue, a saturation and a lightness instead is what makes pastel and deep mean something, and it is why the palettes here hang together.
The hex and RGB codes are converted from that, so what you copy is exactly what is on the screen.