While yoga pants are incredibly comfortable, they are typically not appropriate for a professional or formal setting. However, some workplaces may allow yoga pants as part of a casual dress code. If you are attending a more formal event, opt for dress pants or a skirt instead. If you want to wear yoga pants in a more formal setting, choose a high-quality pair in a dark color and pair them with a dressy top and heels.