Roth IRA contributions are after-tax money. So, if the amount you take out is less than the amount you have previously contributed, you won't have any penalty (or tax).
If you take out more than your contributions, you will pay income tax and a 10% penalty. Roth IRAs have to be open at least five years before some of that tax goes away.

