Using some colours together creates more harmonious or pleasing combinations than others.
Among combinations that are more desirable are:
The same or similar hues
The same or similar saturation levels
Each relatively light or differ only in lightness
Less desirable ones have:
Small variations in lightness
Greater differences in saturation