Random Color Generator

#ab2031 Color

Color Codes
Hex Code #ab2031
RGB Code rgb(171, 32, 49)
HSL Code hsl(353, 68%, 40%)

#ab2031 Color Syntax

rgb()

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

 main {
    background-color: rgb(171, 32, 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, 68%, 40%);
  }

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

RGB Code Hex Code Preview
rgb(171, 32, 49, 10%) #ab20311a  
rgb(171, 32, 49, 20%) #ab203133  
rgb(171, 32, 49, 40%) #ab20314C  
rgb(171, 32, 49, 60%) #ab203199  
rgb(171, 32, 49, 80%) #ab2031CC  
rgb(171, 32, 49, 100%) #ab2031FF  

Saturated and desaturated colors of #ab2031

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

#ab2031 Color Usage In CSS

 body {
    color: #ab2031;
    }
 p {
    color: rgb(171, 32, 49);
    }
 header {
    border-bottom:1px solid #ab2031;
    }
Recent Random Colors