I think it's mostly RNG.
It's been a few years, my first "perfect" was some kind of reddish brown. I kinda remember I had to go back a few generations for a yellow one (it helped I kept some vouchers) and bred a new branch (merged successful with the brown one later as yellow)