Random Color Generator

#c31220 Color

Color Codes
Hex Code #c31220
RGB Code rgb(195, 18, 32)
HSL Code hsl(355, 83%, 42%)

#c31220 Color Syntax

rgb()

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

 main {
    background-color: rgb(195, 18, 32);
   }

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(355, 83%, 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 #c31220

RGB Code Hex Code Preview
rgb(195, 18, 32, 10%) #c312201a  
rgb(195, 18, 32, 20%) #c3122033  
rgb(195, 18, 32, 40%) #c312204C  
rgb(195, 18, 32, 60%) #c3122099  
rgb(195, 18, 32, 80%) #c31220CC  
rgb(195, 18, 32, 100%) #c31220FF  

Saturated and desaturated colors of #c31220

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

#c31220 Color Usage In CSS

 body {
    color: #c31220;
    }
 p {
    color: rgb(195, 18, 32);
    }
 header {
    border-bottom:1px solid #c31220;
    }
Recent Random Colors