The matter of the dress code in Islam is flexible in order to accommodate people in every time, and every culture, and there is no certain design for the outfit, and no colour recommended or prohibited. So you can choose whichever color you want as long as you follow the command of Allah.
Elaborating on the dress code for men, Sheikh Muhammad Iqbal Nadvi, Imam of Calgary Mosque, Canada, and Former Professor at King Saud Univ., Saudi Arabia, states: “Islamically, a dress is supposed to serve two purposes:
1. Covering the `Awrah (private parts) of the body.
2. Serving the purpose of adornment and beautification.
Reviewing the Qur’an, we find that Allah, the Almighty, describes the dress of believers as “The Dress of Piety” or Libasut-Taqwa, and this exactly emphasizes the aforementioned two conditions, and stresses that such a dress should never be used for showing off. Almighty Allah says: “But the raiment of righteousness, – that is the best.” (Al-`Araaf: 26)
Islam has provided few guidelines to achieve this quality:
1. The first condition is that the dress has to be Halal by its origin, i.e. purchased or owned through Halal earning.
2. The second is that it must not imply imitation of other people’s dress. This means we should not imitate others’ religious attire or style, as the Hadith states: “Whoever imitates some people will be ranked among them.” (Irwaa’ul Ghaleel, Al-Albaani, Hadith no. 2384)
3. The third condition is that the dress must not carry any resemblance to women’s dress. This means men’s dress must not involve any kind of feminine style of adornment: pure silk, golden dress, very bright and fast color, are all considered permissible for women, but not for men.
Below this level are somse cultural choices and this may come as a second level. But what is important is that Islam promotes unique identity for Muslims in every action, and this applies to the dress code. So, Islam encourages the dress which represents the message of Islam, and which distinguishes Muslims from others. I hope you will develop your taste so to achieve the goal of piety, which is the best as the Qur’an has pointed out.”
As for women wearing black, it should be noted that there is no specific significance for the color black to say that the dress should be black for men or women. In some cultures, certain colors are reserved for men; in such a case, a woman should not wear those colors while in that cultural setting.
Elaborating on this issue, Sheikh Muhmmad Saleh Al-Munajjid, a prominent Muslim scholar and Saudi lecturer, issues the following fatwa:
“It is not one of the conditions pertaining to the Muslim woman’s dress that it should be black. A woman may wear whatever she wants, so long as she does not wear a color that is only for men [according to the custom of the country], and she does not wear a garment that is an adornment in itself, that is, decorated and adorned in such a way that it attracts the gaze of men, because of the general meaning of the verse:‘and not to show off their adornment…’ (An-Nur: 31)
“This general meaning includes the outer garment, if it is decorated. Abu Dawud narrated from Abu Hurairah that the Messenger of Allah (peace and blessings be upon him) said: ‘Do not prevent the female slaves of Allah from attending the mosques of Allah, but let them go out unadorned.’”
In the Fatwas of the Standing Committee for Fatwa and Research in Kingdom of Saudi Arabia we read:
“It is not permissible for a woman to go out in a decorated garment that attracts people’s gaze, because this is something that tempts men.
The dress of the Muslim woman need not only be black. It is permissible for her to wear any color of clothing so long as it covers her `awrah (the parts of the body that have to be covered), does not resemble men’s clothing, and is not so tight as to show the shape of her limbs or so thin as to show what is beneath it, and does not provoke temptation.
It is not a must for women to wear black. They may wear other colors that are worn only by women, do not attract attention, and do not provoke desire.
Many women choose to wear black, not because it is obligatory, but because it is farthest removed from being an adornment. There are reports that indicate that the women of the Companions used to wear black. Abu Dawud narrated that Umm Salamah said: ‘When the words ‘and to draw their veils all over juyubihinna (i.e. their bodies, faces, necks and bosoms [one interpretation of the meaning])’ (An-Nur: 31) were revealed, the women of the Ansar (Helpers) went out looking as if there were crows on their heads because of their garments.’
This is to be understood as meaning that those clothes were black in color.”