Random Color Generator

#842f52 Color

Color Codes
Hex Code #842f52
RGB Code rgb(132, 47, 82)
HSL Code hsl(335, 47%, 35%)

#842f52 Color Syntax

rgb()

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

 main {
    background-color: rgb(132, 47, 82);
   }

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(335, 47%, 35%);
  }

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 #842f52

RGB Code Hex Code Preview
rgb(132, 47, 82, 10%) #842f521a  
rgb(132, 47, 82, 20%) #842f5233  
rgb(132, 47, 82, 40%) #842f524C  
rgb(132, 47, 82, 60%) #842f5299  
rgb(132, 47, 82, 80%) #842f52CC  
rgb(132, 47, 82, 100%) #842f52FF  

Saturated and desaturated colors of #842f52

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

#842f52 Color Usage In CSS

 body {
    color: #842f52;
    }
 p {
    color: rgb(132, 47, 82);
    }
 header {
    border-bottom:1px solid #842f52;
    }
Recent Random Colors