With hsl picking contrasting colours is easy.  Contrast is useful because it helps to pick out one object from another.  Text and background colours need to be different to read the text easily.

Assume you start with the orange from before.  You can create contrast in three main ways: