It was possible to synthesize the perovskite compound YFexCr1-xO3 by the combustion method using urea and glycine. The spongy and laminated appearance of the ocher colored material was characterized by X-ray diffraction indicating crystallization of the samples in a perovskite structure with orthorhombic deformation. Additionally the samples were studied by Mössbauer spectroscopy at 300 K and 4.2 K. All of them presented magnetic ordering at 4.2K with very narrow line widths. The value of the hyperfine field continuously decreased from the pure sample of YFeO3 to YFe0.25Cr0.75O3. At 300 K the samples of YFeO3 and YFe0.75Cr0.25O3 present a magnetic hyperfine splitting, but the samples with YFe0.50Cr0.50O3 and YFe0.25Cr0.75O3 show only an electric quadrupole splitting indicating superparamagnetism or the absence of magnetic order. We also report the result of first principle calculations of the electronic structure of YFeO3 and YCrO3.