Isaiah1:18

לְכוּ־נָא וְנִוָּכְחָה יֹאמַר יְהוָה אִם־יִהְיוּ חֲטָאֵיכֶם כַּשָּׁנִים כַּשֶּׁלֶג יַלְבִּינוּ אִם־יַאְדִּימוּ כַתּוֹלָע כַּצֶּמֶר יִהְיוּ׃

Come now, and let us reason together," says the Eternal. "Though your sins be like scarlet, they shall be as white as snow. Though they be red like crimson, they shall be like wool.

Isaiah 1:18

לְכוּ־נָא וְנִוָּכְחָה יֹאמַר

Yeshayahu / Isaiah 1:18 · Remez

Isaiah 1:18

לְכוּ־נָא וְנִוָּכְחָה יֹאמַר יְהוָה אִם־יִהְיוּ חֲטָאֵיכֶם כַּשָּׁנִים כַּשֶּׁלֶג יַלְבִּינוּ אִם־יַאְדִּימוּ כַתּוֹלָע כַּצֶּמֶר יִהְיוּ׃

Come now, and let us reason together," says the Eternal. "Though your sins be like scarlet, they shall be as white as snow. Though they be red like crimson, they shall be like wool.

Remez רֶמֶז

The scarlet thread turns white

How do you know that forgiveness has come? In the Temple there was a sign everyone saw: a strip of scarlet wool changed colour.

Mishnah: on Yom Kippur (the Day of Atonement), when the scapegoat was led to the wilderness, a strip of scarlet wool was tied to the Temple door. When the goat reached the wilderness, the strip turned white, after the verse "they will be white as snow". Talmud: by the whitening strip they knew that the commandment was done and the sins forgiven.

How Mishnah, Yoma and Talmud, Yoma explain it

Mishnah, Yoma They said to the High Priest

"The goat has reached the wilderness". And how did they know that the goat had reached the wilderness? They set up lookouts and waved scarves, and so they knew that the goat had reached the wilderness. Rabbi Yehudah said: did they not have a great sign? From Jerusalem to Beit Chadudu is three miles: they walk a mile, return a mile and wait as long as it takes to walk a mile, and they know that the goat has reached the wilderness. Rabbi Yishmael says: did they not have another sign? A strip of scarlet wool was tied to the door of the Sanctuary (הֵיכָל), and when the goat reached the wilderness, the strip turned white, as it is said: "If your sins are like scarlet, they will be white as snow" (Yeshayahu / Isaiah 1:18).

Talmud, Yoma They will be white as snow

Rabbi Nachum son of Papa said in the name of Rabbi Elazar HaKappar: at first they would tie a strip of scarlet wool to the door of the porch (אוּלָם) on the inside, and when the goat reached the wilderness it turned white, and they knew that the commandment was done, as it is said: "If your sins are like scarlet, they will be white as snow" (Yeshayahu / Isaiah 1:18).

Takeaway

The scapegoat is one of the two goats of Yom Kippur: the High Priest placed the people's sins on it, and it was led into the wilderness (Vayikra / Leviticus 16:21–22).
The Talmud tells that forty years before the destruction of the Second Temple the strip stopped turning white (Yoma 39b).
A mile for the sages is two thousand cubits, about a kilometre.