Color space and animation quality
The CSS `transition` and `animation` properties default to interpolating colors in the sRGB color space, which is the same space used for hex values and most CSS color functions. sRGB interpolation produces accurate results for transitions between similar hues (light blue to dark blue) but fails for large hue transitions because the interpolation path crosses the perceptually gray center of the color space. The practical fix: use OKLCH color functions for animated values and specify `color-interpolation-method: oklch` (or simply use oklch() values, which trigger OKLCH interpolation in modern CSS). Alternatively, animate hue, saturation, and lightness properties independently when using HSL-based design tokens. The visual difference is significant on any transition crossing more than 60° of hue distance.
