荒淫 is strongly negative and historical-flavored — used in writing about decadent emperors, fallen aristocrats, and corrupt officials. The set phrase
荒淫无度 (huāngyín wúdù, 'debauched without limit') is especially common in history texts.
荒 here means 'wasted, neglected';
淫 means 'excessive / lewd'.