Random Color Generator

#e31831 Color

Color Codes
Hex Code #e31831
RGB Code rgb(227, 24, 49)
HSL Code hsl(353, 81%, 49%)

#e31831 Color Syntax

rgb()

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

 main {
    background-color: rgb(227, 24, 49);
   }

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(353, 81%, 49%);
  }

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 #e31831

RGB Code Hex Code Preview
rgb(227, 24, 49, 10%) #e318311a  
rgb(227, 24, 49, 20%) #e3183133  
rgb(227, 24, 49, 40%) #e318314C  
rgb(227, 24, 49, 60%) #e3183199  
rgb(227, 24, 49, 80%) #e31831CC  
rgb(227, 24, 49, 100%) #e31831FF  

Saturated and desaturated colors of #e31831

HSL Code Preview
hsl(353, 10%, 49%)  
hsl(353, 20%, 49%)  
hsl(353, 40%, 49%)  
hsl(353, 60%, 49%)  
hsl(353, 80%, 49%)  
hsl(353, 100%, 49%)  

#e31831 Color Usage In CSS

 body {
    color: #e31831;
    }
 p {
    color: rgb(227, 24, 49);
    }
 header {
    border-bottom:1px solid #e31831;
    }
Recent Random Colors