Oxygen octahedral rotations are the most common phase transitions in perovskite crystal structures. Here we show that the color symmetry of such pure elastic distortions is isomorphic to magnetic point groups, which allows their probing through distinguishing polar versus magnetic symmetry. We demonstrate this isomorphism using nonlinear optical probing of the octahedral rotational transition in a compressively strained SrTiO3 thin film that exhibits ferroelectric (4mm) and antiferrodistortive (4{'}mm{'}) phases evolving through independent phase transitions. The approach has broader applicability for probing materials with lattice rotations that can be mapped to color groups.