Random Color Generator

#ca162e Color

Color Codes
Hex Code #ca162e
RGB Code rgb(202, 22, 46)
HSL Code hsl(352, 80%, 44%)

#ca162e Color Syntax

rgb()

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

 main {
    background-color: rgb(202, 22, 46);
   }

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(352, 80%, 44%);
  }

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

RGB Code Hex Code Preview
rgb(202, 22, 46, 10%) #ca162e1a  
rgb(202, 22, 46, 20%) #ca162e33  
rgb(202, 22, 46, 40%) #ca162e4C  
rgb(202, 22, 46, 60%) #ca162e99  
rgb(202, 22, 46, 80%) #ca162eCC  
rgb(202, 22, 46, 100%) #ca162eFF  

Saturated and desaturated colors of #ca162e

HSL Code Preview
hsl(352, 10%, 44%)  
hsl(352, 20%, 44%)  
hsl(352, 40%, 44%)  
hsl(352, 60%, 44%)  
hsl(352, 80%, 44%)  
hsl(352, 100%, 44%)  

#ca162e Color Usage In CSS

 body {
    color: #ca162e;
    }
 p {
    color: rgb(202, 22, 46);
    }
 header {
    border-bottom:1px solid #ca162e;
    }
Recent Random Colors