Random Color Generator

#db311f Color

Color Codes
Hex Code #db311f
RGB Code rgb(219, 49, 31)
HSL Code hsl(6, 75%, 49%)

#db311f Color Syntax

rgb()

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

 main {
    background-color: rgb(219, 49, 31);
   }

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(6, 75%, 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 #db311f

RGB Code Hex Code Preview
rgb(219, 49, 31, 10%) #db311f1a  
rgb(219, 49, 31, 20%) #db311f33  
rgb(219, 49, 31, 40%) #db311f4C  
rgb(219, 49, 31, 60%) #db311f99  
rgb(219, 49, 31, 80%) #db311fCC  
rgb(219, 49, 31, 100%) #db311fFF  

Saturated and desaturated colors of #db311f

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

#db311f Color Usage In CSS

 body {
    color: #db311f;
    }
 p {
    color: rgb(219, 49, 31);
    }
 header {
    border-bottom:1px solid #db311f;
    }
Recent Random Colors