The meanings overlap.
The central idea of "luxury" is "really nice," "wonderfully comfortable," "expensive but worth every penny."
The central idea of "extravagance" is "excessive," "too much," "wasteful," "conspicuous consumption," "ostentation."
Something might seem "nice" to one person, "a luxury" to another, or "extravagant" to another.