Random Color Generator

#d9271c Color

Color Codes
Hex Code #d9271c
RGB Code rgb(217, 39, 28)
HSL Code hsl(3, 77%, 48%)

#d9271c Color Syntax

rgb()

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

 main {
    background-color: rgb(217, 39, 28);
   }

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(3, 77%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(217, 39, 28, 10%) #d9271c1a  
rgb(217, 39, 28, 20%) #d9271c33  
rgb(217, 39, 28, 40%) #d9271c4C  
rgb(217, 39, 28, 60%) #d9271c99  
rgb(217, 39, 28, 80%) #d9271cCC  
rgb(217, 39, 28, 100%) #d9271cFF  

Saturated and desaturated colors of #d9271c

HSL Code Preview
hsl(3, 10%, 48%)  
hsl(3, 20%, 48%)  
hsl(3, 40%, 48%)  
hsl(3, 60%, 48%)  
hsl(3, 80%, 48%)  
hsl(3, 100%, 48%)  

#d9271c Color Usage In CSS

 body {
    color: #d9271c;
    }
 p {
    color: rgb(217, 39, 28);
    }
 header {
    border-bottom:1px solid #d9271c;
    }
Recent Random Colors