In [Co(NH3)6]3+,Co3+ ion is having 3 d6 configuration. Electronic configuration of Co3+ : 
In presence of NH3 ligand, pairing of electrons takes place and it becomes diamagnetic complex ion. In presence of NH3 ligand :
∴[Co(NH3)6]3+ is octahedral with d2sp3 hybridisation and it is diamagnetic in nature. In case of [CoF6]3−, Co is in +3 oxidation state and it is having 3 d6 configuration. In presence of weak field F−ligand, pairing does not take place. In presence of F−ligands :
∴ In [CoF6]3−,Co3+ is sp3 d2 hybridised with four unpaired electrons, so it is paramagnetic in nature.