The hue-rotate()
CSS function rotates the hue of an element and its contents. Its result is a <filter-function>
.
Note: hue-rotate()
is specified as a matrix operation on the RGB color. It does not actually convert the color to the HSL model, which is a non-linear operation. Therefore, it may not preserve the saturation or lightness of the original color, especially for saturated colors.