The answer is in two parts.
- It has to be legal for a woman to have an abortion. Making it illegal just makes a black market, and you cannot enforce morality through law.
- Morality is based on human interactions. Its punishment is through community. Its guidelines is set through community. So, you have to ask the community if it is ok. (right now, feminists are pushing for a community destructive, anything goes and is all right frame.)
What you are probably really asking is it ok spiritually speaking to abort a child any given reason (from rape, to they won't have green eyes). Many mothers to be, talk of a sense of connection with the child growing within them. This connection, how far does it go? Was there an exchange, an agreement, that the child made with the mother to come into this world and be her child? If there is this connection, then to sever that connection is a huge choice. But, if it is only a pile of cells, a blood sucking leach, then the decision is only a matter of aesthetics. Which is morally right is hacked out by the community at that time. Which side is correct? Only really getting in touch with your intuition will tell you.