Random Color Generator

#a22231 Color

Color Codes
Hex Code #a22231
RGB Code rgb(162, 34, 49)
HSL Code hsl(353, 65%, 38%)

#a22231 Color Syntax

rgb()

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

 main {
    background-color: rgb(162, 34, 49);
   }

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(353, 65%, 38%);
  }

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

RGB Code Hex Code Preview
rgb(162, 34, 49, 10%) #a222311a  
rgb(162, 34, 49, 20%) #a2223133  
rgb(162, 34, 49, 40%) #a222314C  
rgb(162, 34, 49, 60%) #a2223199  
rgb(162, 34, 49, 80%) #a22231CC  
rgb(162, 34, 49, 100%) #a22231FF  

Saturated and desaturated colors of #a22231

HSL Code Preview
hsl(353, 10%, 38%)  
hsl(353, 20%, 38%)  
hsl(353, 40%, 38%)  
hsl(353, 60%, 38%)  
hsl(353, 80%, 38%)  
hsl(353, 100%, 38%)  

#a22231 Color Usage In CSS

 body {
    color: #a22231;
    }
 p {
    color: rgb(162, 34, 49);
    }
 header {
    border-bottom:1px solid #a22231;
    }
Recent Random Colors