Random Color Generator

#5e489b Color

Color Codes
Hex Code #5e489b
RGB Code rgb(94, 72, 155)
HSL Code hsl(256, 37%, 45%)

#5e489b Color Syntax

rgb()

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

 main {
    background-color: rgb(94, 72, 155);
   }

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(256, 37%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(94, 72, 155, 10%) #5e489b1a  
rgb(94, 72, 155, 20%) #5e489b33  
rgb(94, 72, 155, 40%) #5e489b4C  
rgb(94, 72, 155, 60%) #5e489b99  
rgb(94, 72, 155, 80%) #5e489bCC  
rgb(94, 72, 155, 100%) #5e489bFF  

Saturated and desaturated colors of #5e489b

HSL Code Preview
hsl(256, 10%, 45%)  
hsl(256, 20%, 45%)  
hsl(256, 40%, 45%)  
hsl(256, 60%, 45%)  
hsl(256, 80%, 45%)  
hsl(256, 100%, 45%)  

#5e489b Color Usage In CSS

 body {
    color: #5e489b;
    }
 p {
    color: rgb(94, 72, 155);
    }
 header {
    border-bottom:1px solid #5e489b;
    }
Recent Random Colors