Random Color Generator

#c5121a Color

Color Codes
Hex Code #c5121a
RGB Code rgb(197, 18, 26)
HSL Code hsl(357, 83%, 42%)

#c5121a Color Syntax

rgb()

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

 main {
    background-color: rgb(197, 18, 26);
   }

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, 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 #c5121a

RGB Code Hex Code Preview
rgb(197, 18, 26, 10%) #c5121a1a  
rgb(197, 18, 26, 20%) #c5121a33  
rgb(197, 18, 26, 40%) #c5121a4C  
rgb(197, 18, 26, 60%) #c5121a99  
rgb(197, 18, 26, 80%) #c5121aCC  
rgb(197, 18, 26, 100%) #c5121aFF  

Saturated and desaturated colors of #c5121a

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

#c5121a Color Usage In CSS

 body {
    color: #c5121a;
    }
 p {
    color: rgb(197, 18, 26);
    }
 header {
    border-bottom:1px solid #c5121a;
    }
Recent Random Colors