Random Color Generator

#d31b28 Color

Color Codes
Hex Code #d31b28
RGB Code rgb(211, 27, 40)
HSL Code hsl(356, 77%, 47%)

#d31b28 Color Syntax

rgb()

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

 main {
    background-color: rgb(211, 27, 40);
   }

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

RGB Code Hex Code Preview
rgb(211, 27, 40, 10%) #d31b281a  
rgb(211, 27, 40, 20%) #d31b2833  
rgb(211, 27, 40, 40%) #d31b284C  
rgb(211, 27, 40, 60%) #d31b2899  
rgb(211, 27, 40, 80%) #d31b28CC  
rgb(211, 27, 40, 100%) #d31b28FF  

Saturated and desaturated colors of #d31b28

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%)  

#d31b28 Color Usage In CSS

 body {
    color: #d31b28;
    }
 p {
    color: rgb(211, 27, 40);
    }
 header {
    border-bottom:1px solid #d31b28;
    }
Recent Random Colors