The complementary color of #40405D is the color #5D5D40
The HSL model was used to determine the complementary color