Color harmony basics
Color harmonies are built on the color wheel — the hue (H) component of HSL, measured 0–360°. A harmony rule picks other hues at fixed angles from your base, which is why the results look balanced rather than random.
This generator converts your base color to HSL, rotates the hue by the rule's angles (keeping saturation and lightness for most rules), and converts back to HEX for each swatch.
Worked example
From a blue base at hue ≈ 217°, a complementary palette:
Using palettes in design
Complementary schemes are high-contrast and great for calls to action; analogous schemes (neighboring hues) feel calm and cohesive; triadic schemes are vivid but balanced. A common approach is to choose one dominant color, one accent and a couple of neutrals. Always check text/background pairs for sufficient contrast for readability.