Tailwind CSS Grayscale Last Updated : 23 Jul, 2025 Suggest changes Share 2 Likes Like Report The Grayscale class is used to apply a filter to the image to set the grayscale of the image. In CSS, we do that by using the CSS grayscale() Function. Tailwind CSS newly added feature brightness in 2.1 version. Grayscale: grayscale-0: This class is used to represents the original image.grayscale: This class is used to represents the linear multipliers on the effect. Syntax: <element class="filter grayscale | grayscale-0">..</element> Example: HTML <!DOCTYPE html> <html> <head> <link href= "https://unpkg.com/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> </head> <body class="text-center mx-20 space-y-2"> <h1 class="text-green-600 text-5xl font-bold"> GeeksforGeeks </h1> <b>Tailwind CSS Grayscale Class</b> <div class="grid grid-flow-col text-center mx-44"> <img class="rounded-lg filter grayscale" src= "https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg" alt="image"> <img class="rounded-lg filter grayscale-0" src= "https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg" alt="image"> </div> </body> </html> Output: S skyridetim Follow 2 Article Tags : Web Technologies CSS Tailwind CSS Tailwind-Filters Explore CSS Introduction 3 min read CSS Syntax 2 min read CSS Selectors 6 min read CSS Comments 2 min read CSS Colors 5 min read CSS Borders 5 min read CSS Margins 4 min read CSS Height and Width 4 min read CSS Outline 4 min read CSS Fonts 4 min read My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like