Random Color Generator

#d1030d Color

Color Codes
Hex Code #d1030d
RGB Code rgb(209, 03, 13)
HSL Code hsl(357, 97%, 42%)

#d1030d Color Syntax

rgb()

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

 main {
    background-color: rgb(209, 03, 13);
   }

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(357, 97%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(209, 03, 13, 10%) #d1030d1a  
rgb(209, 03, 13, 20%) #d1030d33  
rgb(209, 03, 13, 40%) #d1030d4C  
rgb(209, 03, 13, 60%) #d1030d99  
rgb(209, 03, 13, 80%) #d1030dCC  
rgb(209, 03, 13, 100%) #d1030dFF  

Saturated and desaturated colors of #d1030d

HSL Code Preview
hsl(357, 10%, 42%)  
hsl(357, 20%, 42%)  
hsl(357, 40%, 42%)  
hsl(357, 60%, 42%)  
hsl(357, 80%, 42%)  
hsl(357, 100%, 42%)  

#d1030d Color Usage In CSS

 body {
    color: #d1030d;
    }
 p {
    color: rgb(209, 03, 13);
    }
 header {
    border-bottom:1px solid #d1030d;
    }
Recent Random Colors