In marginal costing, contribution is what you get when you deduct the variable costs from the sales revenue. Then, after deducting the fixed costs from your contribution, you get the profit before tax.
So basically, the difference between contribution and profit are the fixed costs.