General happiness and positivity:
* Joy
* Happiness
* Cheerfulness
* Exuberance
* Euphoria
* Optimism
* Delight
* Contentment
* Bliss
Energy and vitality:
* Enthusiasm
* Excitement
* Vigor
* Zest
* Liveliness
Specific emotional states:
* Hope
* Confidence
* Courage
* Tranquility
* Peace
* Serenity
Other related words:
* Upbeat
* Positive
* Lighthearted
* Joyful
* Animated
* Vibrant
The best antonym for "melancholy" will depend on the specific context and the specific aspect of melancholy you want to contrast.