Random Color Generator

#9e4ac9 Color

Color Codes
Hex Code #9e4ac9
RGB Code rgb(158, 74, 201)
HSL Code hsl(280, 54%, 54%)

#9e4ac9 Color Syntax

rgb()

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

 main {
    background-color: rgb(158, 74, 201);
   }

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(280, 54%, 54%);
  }

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 #9e4ac9

RGB Code Hex Code Preview
rgb(158, 74, 201, 10%) #9e4ac91a  
rgb(158, 74, 201, 20%) #9e4ac933  
rgb(158, 74, 201, 40%) #9e4ac94C  
rgb(158, 74, 201, 60%) #9e4ac999  
rgb(158, 74, 201, 80%) #9e4ac9CC  
rgb(158, 74, 201, 100%) #9e4ac9FF  

Saturated and desaturated colors of #9e4ac9

HSL Code Preview
hsl(280, 10%, 54%)  
hsl(280, 20%, 54%)  
hsl(280, 40%, 54%)  
hsl(280, 60%, 54%)  
hsl(280, 80%, 54%)  
hsl(280, 100%, 54%)  

#9e4ac9 Color Usage In CSS

 body {
    color: #9e4ac9;
    }
 p {
    color: rgb(158, 74, 201);
    }
 header {
    border-bottom:1px solid #9e4ac9;
    }
Recent Random Colors