Random Color Generator

#5c3368 Color

Color Codes
Hex Code #5c3368
RGB Code rgb(92, 51, 104)
HSL Code hsl(286, 34%, 30%)

#5c3368 Color Syntax

rgb()

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

 main {
    background-color: rgb(92, 51, 104);
   }

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(286, 34%, 30%);
  }

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 #5c3368

RGB Code Hex Code Preview
rgb(92, 51, 104, 10%) #5c33681a  
rgb(92, 51, 104, 20%) #5c336833  
rgb(92, 51, 104, 40%) #5c33684C  
rgb(92, 51, 104, 60%) #5c336899  
rgb(92, 51, 104, 80%) #5c3368CC  
rgb(92, 51, 104, 100%) #5c3368FF  

Saturated and desaturated colors of #5c3368

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

#5c3368 Color Usage In CSS

 body {
    color: #5c3368;
    }
 p {
    color: rgb(92, 51, 104);
    }
 header {
    border-bottom:1px solid #5c3368;
    }
Recent Random Colors