Getting hair colored...

I heard its both safe and a no no in early stages of pregnancy....what is the week limit to not