Contingency planning and risk go hand-in-hand. Indeed contingency planning is a last resort and should be considered for high risks only when it’s not possible to prevent or avoid an event, reduce the impact or even transfer the risk to someone else.
Contingency planning and risk management are often used in project management and business continuity planning.