Employers plotting year-end layoffs might think twice—and twice more—about which employees they intend to let go.

The rise of diversity, equity and inclusion programs has brought more traditionally underrepresented minorities into the workplace in recent years. That puts them at particular risk when employers use a "last-in, first-out" basis for deciding whom to cast off.