css on hover darken 20% code example Example: hover apply lighter color css .myElement:hover { filter: brightness(150%); }