Random Color Generator

#d31c29 Color

Color Codes
Hex Code #d31c29
RGB Code rgb(211, 28, 41)
HSL Code hsl(356, 77%, 47%)

#d31c29 Color Syntax

rgb()

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

 main {
    background-color: rgb(211, 28, 41);
   }

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(356, 77%, 47%);
  }

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

RGB Code Hex Code Preview
rgb(211, 28, 41, 10%) #d31c291a  
rgb(211, 28, 41, 20%) #d31c2933  
rgb(211, 28, 41, 40%) #d31c294C  
rgb(211, 28, 41, 60%) #d31c2999  
rgb(211, 28, 41, 80%) #d31c29CC  
rgb(211, 28, 41, 100%) #d31c29FF  

Saturated and desaturated colors of #d31c29

HSL Code Preview
hsl(356, 10%, 47%)  
hsl(356, 20%, 47%)  
hsl(356, 40%, 47%)  
hsl(356, 60%, 47%)  
hsl(356, 80%, 47%)  
hsl(356, 100%, 47%)  

#d31c29 Color Usage In CSS

 body {
    color: #d31c29;
    }
 p {
    color: rgb(211, 28, 41);
    }
 header {
    border-bottom:1px solid #d31c29;
    }
Recent Random Colors