The grayscale() CSS function converts the input image to grayscale. Its result is a <filter-function>.
Option
Preview
Code
filter: grayscale(50%);