HPLC operates based on the principle of differential partitioning between a stationary phase and a mobile phase. The sample mixture is injected into the HPLC system, where it travels through a column packed with the stationary phase. Different components of the mixture interact differently with the stationary phase, causing them to elute at different times. These elution times, known as retention times, are used for the identification and quantification of the components.