Random Color Generator

#522041 Color

Color Codes
Hex Code #522041
RGB Code rgb(82, 32, 65)
HSL Code hsl(320, 44%, 22%)

#522041 Color Syntax

rgb()

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

 main {
    background-color: rgb(82, 32, 65);
   }

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(320, 44%, 22%);
  }

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

RGB Code Hex Code Preview
rgb(82, 32, 65, 10%) #5220411a  
rgb(82, 32, 65, 20%) #52204133  
rgb(82, 32, 65, 40%) #5220414C  
rgb(82, 32, 65, 60%) #52204199  
rgb(82, 32, 65, 80%) #522041CC  
rgb(82, 32, 65, 100%) #522041FF  

Saturated and desaturated colors of #522041

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

#522041 Color Usage In CSS

 body {
    color: #522041;
    }
 p {
    color: rgb(82, 32, 65);
    }
 header {
    border-bottom:1px solid #522041;
    }
Recent Random Colors