EstablishedSpecialists broadly agree, on solid evidence.
Dhimmis had to wear distinctive clothing.

Short answer
Yes, in law, but how far the rule was applied changed a great deal over time and place. The Pact of Umar and the law books required Jews and Christians to dress differently from Muslims, a rule called ghiyar. Several rulers issued such orders, among them the Abbasid caliph al-Mutawakkil in 850, the Fatimid caliph al-Hakim in the early 11th century and the Mamluk Sultanate in 1301.
The evidence
In the Pact of Umar the non-Muslims promise not to imitate Muslims in their clothing, such as the cap called qalansuwa, the turban and footwear, or in how they part their hair, and to wear the belt called zunnar around their waists. Jurists called these marks of difference ghiyar. Levy-Rubin traces such rules to the early Abbasid period, when the standard list of conditions took shape.
Al-Tabari records that in 235 AH (850 CE) al-Mutawakkil ordered Christians and all other dhimmis to wear honey-coloured hoods and zunnar belts, to put two honey-coloured patches on the outer clothes of their slaves (those too poor to wear the hood had to wear two patches instead), and to nail wooden images of devils to the doors of their houses. Walker describes how the Fatimid caliph al-Hakim (r. 996–1021), in the first years of the 11th century, ordered Christians and Jews to wear black, and later to hang a wooden cross (for Christians) or a wooden block (for Jews) from their necks. These orders came with other harsh measures, among them the destruction of the Church of the Holy Sepulchre in 1009. Late in his reign al-Hakim allowed those who had converted under pressure to return to their faith.
In 1301 the Mamluk government ordered Christians to wear blue turbans, Jews yellow and Samaritans red. Al-Marrakushi reports that the Almohad caliph Abu Yusuf Yaqub al-Mansur (r. 1184–1199) made the Jews of the Maghrib, who had been made to convert, wear dark clothes with overlong sleeves and an odd-shaped cap, and that his son changed this to yellow clothes and turbans.
Enforcement was uneven. Goitein, reading the Geniza documents from Fatimid and Ayyubid Egypt, found that in ordinary times the dress rules were seldom applied. Ottoman sultans reissued dress rules for non-Muslims a number of times; historians read the repetition as a sign that the rules lapsed between decrees. Cohen notes that Latin Christendom also required Jews and Muslims to wear distinctive dress, at the Fourth Lateran Council of 1215.
What the traditions say
Jewish tradition
Jewish law also asked Jews to be set apart in dress. Maimonides ruled that a Jew should not follow the customs of idolaters or dress like them, but should be distinct from them and known by his dress and his other deeds (Mishneh Torah, Laws of Idolatry 11:1; our paraphrase). He drew the rule from verses such as "neither shall ye walk in their statutes" (Leviticus 18:3, JPS 1917).
Muslim tradition
Jurists explained ghiyar as a way to tell Muslims and dhimmis apart, so that the rules for each could be applied. Ibn Qayyim al-Jawziyya treats it at length in his Ahkam ahl al-dhimma. Ibn al-Qayyim quotes Abu al-Qasim al-Tabari as saying the marks were meant both to humble them and to tell them apart from Muslims. Jurists also linked it to the hadith "whoever imitates a people is one of them" (Sunan Abi Dawud, Kitab al-Libas, no. 4031 in the sunnah.com numbering; graded hasan sahih by al-Albani). Modern scholars such as Yusuf al-Qaradawi argue that the dress rules belonged to the customs and needs of their time and are not fixed by the Quran.
Why people argue about it
Critics of the dhimma
Bat Ye'or and others read the dress rules as a sign of humiliation built into the dhimma, and point to the decrees of al-Mutawakkil and al-Hakim.
Muslim writers
Many stress that the Quran does not set the rules and that they were applied unevenly.
Historians
Noth argued that many such clauses first aimed to keep the groups visibly apart, and only later came to be read as marks of lower rank. The question is how much each rule meant in its own time and place.
Sources
Tier 2 · ScholarshipAcademic
The Jews of Arab Lands: A History and Source BookNorman A. Stillman · Jewish Publication Society of America, 1979
the translation of the Pact of UmarTo verify
Tier 2 · ScholarshipAcademic
Non-Muslims in the Early Islamic Empire: From Surrender to CoexistenceMilka Levy-Rubin · Cambridge University Press, 2011
the chapters on the shurutTo verify
Tier 1 · PrimaryMuslim traditional
The History of al-Ṭabarī, vol. 34: Incipient DeclineMuḥammad ibn Jarīr al-Ṭabarī (trans. Joel L. Kraemer) · State University of New York Press, 1989
events of the year 235 AHTo verify
Tier 2 · ScholarshipAcademic
Caliph of Cairo: al-Hakim bi-Amr Allah, 996–1021Paul E. Walker · American University in Cairo Press, 2009
chapter on the decrees concerning Christians and JewsTo verify
Tier 2 · ScholarshipAcademic
Under Crescent and Cross: The Jews in the Middle AgesMark R. Cohen · Princeton University Press, 1994
chapter on law and the distinguishing signsTo verify
Tier 2 · ScholarshipAcademic
The Jews of Arab Lands: A History and Source BookNorman A. Stillman · Jewish Publication Society of America, 1979
the translated passage from al-Marrakushi on the AlmohadsTo verify
Tier 2 · ScholarshipAcademic
The Jews of IslamBernard Lewis · Princeton University Press, 1984
chapter and page on the Mamluk decree of 1301To verify
Tier 2 · ScholarshipAcademic
A Mediterranean Society: The Jewish Communities of the Arab World as Portrayed in the Documents of the Cairo Geniza (6 vols.)S. D. Goitein · University of California Press, 1967
vol. 2, on the non-Muslims and the stateTo verify
Tier 2 · ScholarshipAcademic
Christians and Jews in the Ottoman Empire: The Functioning of a Plural Society (2 vols.)Benjamin Braude and Bernard Lewis (eds.) · Holmes & Meier, 1982
vol. 1, introductionTo verify
Tier 3 · Religious scholarshipJewish traditional
Mishneh TorahMoses Maimonides
Hilkhot Avodat Kokhavim 11:1
Tier 1 · PrimaryJewish traditional
The Holy Scriptures According to the Masoretic TextJewish Publication Society of America, 1917
Leviticus 18:3
Tier 3 · Religious scholarshipMuslim traditional
Aḥkām ahl al-dhimmaIbn Qayyim al-Jawziyya
the section on ghiyar, Ramadi ed. pp. 1262–1264To verify
Tier 3 · Religious scholarshipMuslim traditional
Sunan Abī DāwūdAbū Dāwūd Sulaymān ibn al-Ashʿath al-Sijistānī
Kitab al-Libas, no. 4031
Tier 3 · Religious scholarshipMuslim traditional
Ghayr al-muslimīn fī al-mujtamaʿ al-islāmīYūsuf al-Qaraḍāwī · Maktabat Wahba, 1977
section on dress and editionTo verify
Tier 2 · ScholarshipCritic
The Dhimmi: Jews and Christians under IslamBat Ye'or · Fairleigh Dickinson University Press, 1985
the book as a whole
Tier 2 · ScholarshipAcademic
Abgrenzungsprobleme zwischen Muslimen und Nicht-Muslimen: Die „Bedingungen ʿUmars (aš-šurūṭ al-ʿumariyya)“ unter einem anderen Aspekt gelesenAlbrecht Noth · Jerusalem Studies in Arabic and Islam 9, 1987
the article as a whole