Ancient Chinese official ranks were often distinguished by specific colors of robes and headgear. The colors were symbolic, representing the rank and status of the official. For instance, the color red was associated with high rank and authority, while blue and green were associated with lower ranks. Each dynasty had its own set of colors and their meanings, reflecting the cultural and political values of the time.