Contributions come out tax-free, penalty-free at any time.
Conversions come out free from regular income tax at any time. There is, however, a 10% penalty unless:
a) the 5-year rule has been met for that conversion,
b) the distribution is for a qualifying reason, or
c) one of the other...