The way to apply the grayscale filter is:

.grayscale {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

The image below has been styled using the grayscale css filter.

coloured pencils