color brightness css code example
Example 1: brightness css
brightness(0%) /* Completely black */
brightness(0.4) /* 40% brightness */
brightness(1) /* No effect */
brightness(200%) /* Double brightness */
Example 2: css hover darken color
.your-css-class:hover {
background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
}