Wait - let's not get too extreme here. Can you get into backup assistant on your computer? If so, export all your contacts into a csv. Import those into your google account at contacts.google.com. They will automatically sync to your phone. Problem solved.
So you did install a custom ROM then? Which one? Did you make a backup first? If not, and you really want to get back to stock, do a search for R3l3as3d Root on rootzwiki.com, I think that should get you back. You can use that to reroot/forever root at the same time.