Random colours, and why families help
A screen makes every colour from red, green and blue light, each at a level from 0 to 255. That gives 256 × 256 × 256 = 16,777,216 colours. A hex code writes the three levels in base 16: #FF0000 is full red with no green or blue. The same colour is rgb(255, 0, 0) in RGB and hsl(0, 100%, 50%) in HSL, and every swatch here shows all three.
Drawing a fully random colour is easy: take three random bytes. The results are fair, but most of them look dull. A typical draw has all three channels somewhere in the middle, which gives greys, browns and olive greens. Pure, bright colours need one channel high and another low, and those are a small share of all the possibilities.
That is why the tool offers families. HSL describes a colour by hue, its place on the colour wheel from 0 to 360 degrees, saturation, how strong it is, and lightness, how close it is to white or black. A pastel here has saturation from 50 to 80 percent and lightness from 80 to 90 percent. A vivid colour has saturation from 80 to 100 percent and lightness near 50. A dark colour has lightness from 15 to 30 percent. Within a family the hue is free, so a set varies in colour but agrees in mood.
A worked example: a teacher wants six different background colours for groups on a slide, light enough for black text. Picking Pastel and 6 gives six light colours such as hsl(200, 65%, 85%). Black text on that background has a contrast ratio of more than 14 to 1, far above the 4.5 to 1 that the WCAG accessibility guidelines ask for in body text.
There are limits. Colours are drawn independently, so two in one set can look almost the same; press New colours for another set. The families are ranges in HSL, which does not match human perception exactly, so a yellow and a blue at the same lightness can look quite different in brightness. The tool does not build harmonious palettes or check contrast for you.