Interestingly, so was yellow-colored margarine.
"Oleomargarine", as they used to call it, is an off-white color. To make it more appealing to butter users, oleo manufacturers added yellow coloring, until the butter lobby appealed. I believe this regulation was overturned in the late 1960s.