There are more magical items that go off of alignment than anything. Other than, there is Oathbreaker Paladin (DMG) that says you have to be evil. The only spell I can think of that can involves alignment is Glyph of Warding, which allows you to trigger based on alignment.
I forgot about the Glyph of Warding. I amend my statement: there is one uncommonly used spell that mentions alignment. 😂