Random Color Generator

#4c2d76 Color

Color Codes
Hex Code #4c2d76
RGB Code rgb(76, 45, 118)
HSL Code hsl(265, 45%, 32%)

#4c2d76 Color Syntax

rgb()

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

 main {
    background-color: rgb(76, 45, 118);
   }

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(265, 45%, 32%);
  }

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 #4c2d76

RGB Code Hex Code Preview
rgb(76, 45, 118, 10%) #4c2d761a  
rgb(76, 45, 118, 20%) #4c2d7633  
rgb(76, 45, 118, 40%) #4c2d764C  
rgb(76, 45, 118, 60%) #4c2d7699  
rgb(76, 45, 118, 80%) #4c2d76CC  
rgb(76, 45, 118, 100%) #4c2d76FF  

Saturated and desaturated colors of #4c2d76

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

#4c2d76 Color Usage In CSS

 body {
    color: #4c2d76;
    }
 p {
    color: rgb(76, 45, 118);
    }
 header {
    border-bottom:1px solid #4c2d76;
    }
Recent Random Colors