Gregor Mendel studied seven pairs of contrasting traits in pea plants: plant height (tall/dwarf), seed shape (round/wrinkled), seed color (yellow/green), pod shape (inflated/constricted), pod color (green/yellow), flower position (axial/terminal), and flower color (purple/white). These seven traits formed the foundation of his laws of inheritance.