Singlet-triplet perturbations in formaldehyde