The yellow allele (AY) is a recessive lethal in the homozygous state sonce the AY/AY genotype does not survive.

But it is dominant to the wild type agouti allele (A) in producing yellow coat color in a heterozygote.