“The dress she was wearing was uglier than hitting one’s father.”
According to Wiktionary, the literal meaning is about hitting a priest, not one’s father. I would suggest “ugly as sin” as a fitting translation.
(más feo que pegar a un padre - Wiktionary, the free dictionary)