Random Color Generator

#5a4dce Color

Color Codes
Hex Code #5a4dce
RGB Code rgb(90, 77, 206)
HSL Code hsl(246, 57%, 55%)

#5a4dce Color Syntax

rgb()

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

 main {
    background-color: rgb(90, 77, 206);
   }

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(246, 57%, 55%);
  }

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

RGB Code Hex Code Preview
rgb(90, 77, 206, 10%) #5a4dce1a  
rgb(90, 77, 206, 20%) #5a4dce33  
rgb(90, 77, 206, 40%) #5a4dce4C  
rgb(90, 77, 206, 60%) #5a4dce99  
rgb(90, 77, 206, 80%) #5a4dceCC  
rgb(90, 77, 206, 100%) #5a4dceFF  

Saturated and desaturated colors of #5a4dce

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

#5a4dce Color Usage In CSS

 body {
    color: #5a4dce;
    }
 p {
    color: rgb(90, 77, 206);
    }
 header {
    border-bottom:1px solid #5a4dce;
    }
Recent Random Colors