Skip to content
Related Articles

Related Articles

CSS | hue-rotate() Function

Improve Article
Save Article
  • Last Updated : 19 Aug, 2022
Improve Article
Save Article

The hue-rotate() function is an inbuilt function which is used to apply a filter to the image to set the hue rotation of the image. 


hue-rotate( angle )

Parameters: This function accepts single parameter angle which holds the angle of hue-rotation. A positive hue angle increases the hue value, while a negative angle decreases the hue value. 

Below example illustrates the hue-rotate() function in CSS: 



<!DOCTYPE html>
    <title>CSS hue-rotate() Function</title>
        h1 {
        body {
        .hue_rotate_effect {
            filter: hue-rotate(100deg);
    <h2>CSS hue-rotate() function</h2>
    <img class="hue_rotate_effect" src=
        alt="GeeksforGeeks logo">



Supported Browsers: The browsers supported by hue-rotate() function are listed below:

  • Google Chrome 18
  • Edge 12
  • Firefox 35
  • Safari 6
  • Opera 15
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!