Random Color Generator

#e22232 Color

Color Codes
Hex Code #e22232
RGB Code rgb(226, 34, 50)
HSL Code hsl(355, 77%, 51%)

#e22232 Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(226, 34, 50);
   }

R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.

hsl()

 hsl(hue saturation lightness);
 hsl(hue saturation lightness / alpha);

 div {
  background-color: hsl(355, 77%, 51%);
  }

Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.

Lighter and darker colors of #e22232

RGB Code Hex Code Preview
rgb(226, 34, 50, 10%) #e222321a  
rgb(226, 34, 50, 20%) #e2223233  
rgb(226, 34, 50, 40%) #e222324C  
rgb(226, 34, 50, 60%) #e2223299  
rgb(226, 34, 50, 80%) #e22232CC  
rgb(226, 34, 50, 100%) #e22232FF  

Saturated and desaturated colors of #e22232

HSL Code Preview
hsl(355, 10%, 51%)  
hsl(355, 20%, 51%)  
hsl(355, 40%, 51%)  
hsl(355, 60%, 51%)  
hsl(355, 80%, 51%)  
hsl(355, 100%, 51%)  

#e22232 Color Usage In CSS

 body {
    color: #e22232;
    }
 p {
    color: rgb(226, 34, 50);
    }
 header {
    border-bottom:1px solid #e22232;
    }
Recent Random Colors