It depends on what the discharge actually is and when it appears, not on its color. Brown or yellow discharge, sufrah and kudrah, breaks a fast only when it counts as hayd. When it does not, the fast for that day stands and nothing needs to be made up for it.
The underlying test is the one used for any bleeding whose nature is not obvious: the Prophet (Salla Allahu 'Alayhi Wa Sallam) told Fatimah bint Abi Hubaysh, "When it is menstrual blood it is dark and recognizable, so when it is like that, then stop praying, and when it is otherwise, do wudu and pray, for that is from a vein." (Narrated by Abu Dawud and al-Nasai; classed as sahih by Ibn Hibban and al-Hakim). Brown and yellow discharge sit below that description on their own. Ibn Taymiyyah's reasoning, the position taken as strongest, is that this discharge only rises to hayd when it occurs during the days of an actual period, alongside or continuing on from blood that does carry those characteristics, and not otherwise.
Two situations settle most of what actually comes up on a fasting day:
- If brown or yellow discharge appears before any real bleeding has started, and never turns into full hayd, it is not menstruation. The fast for that day stands exactly as it would on an ordinary day, and there is nothing to make up.
- If it appears after a woman has already reached tuhr, by the white discharge or by complete dryness, it does not count either, based on the hadith of Umm 'Atiyyah: "We used not to regard the brownish or yellowish discharge after the Tuhr as being of any significance." (Narrated by al-Bukhari). A fast kept after that sign has appeared is valid, whatever discharge follows it later in the day.
Between those two points, while hayd is actually present, brown or yellow discharge is read as a continuation of it, not as something separate. The fast breaks the moment it is recognised as part of that bleeding, even if that happens minutes before Maghrib, exactly as it would if the discharge had been red blood instead. The reverse works the same way: once what she sees firms into the white discharge or dryness of tuhr partway through a fasting day, any brown or yellow trace that follows that sign does not reopen the question. What decides it, in every case, is where the discharge sits relative to the days of an actual period, not its shade by itself.
This is exactly the kind of detail worth logging on the day itself rather than recalling weeks later, since answering "was that hayd" usually turns on a timeline memory alone will not hold reliably. A period tracker built for Muslim women that records the color and timing of what you saw against the day of your fast is what turns this into a short question instead of a guess.