An octahedral complex is formed when hybrid orbitals of the following type are involved
sp3
dsp2
sp3d2
sp3d
When one (s), three (p) and two (d) hybrid orbitals are involved then it forms octahedral complex.s + 3p + 2d = sp3d2