Tips for pairing them
Use one color in larger amounts and the other in small touches, for example 70-20-10 with gray or white as the neutral. Dark purple with mustard is elegant; lilac with pastel yellow is soft and springy. In fashion, a purple dress with yellow accessories is a bold choice. In design, yellow on dark purple makes buttons really stand out.
Contrast between them: 5.4:1. Enough to put text in one color on the other.