Random Color Generator

#9e1eb7 Color

Color Codes
Hex Code #9e1eb7
RGB Code rgb(158, 30, 183)
HSL Code hsl(290, 72%, 42%)

#9e1eb7 Color Syntax

rgb()

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

 main {
    background-color: rgb(158, 30, 183);
   }

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(290, 72%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(158, 30, 183, 10%) #9e1eb71a  
rgb(158, 30, 183, 20%) #9e1eb733  
rgb(158, 30, 183, 40%) #9e1eb74C  
rgb(158, 30, 183, 60%) #9e1eb799  
rgb(158, 30, 183, 80%) #9e1eb7CC  
rgb(158, 30, 183, 100%) #9e1eb7FF  

Saturated and desaturated colors of #9e1eb7

HSL Code Preview
hsl(290, 10%, 42%)  
hsl(290, 20%, 42%)  
hsl(290, 40%, 42%)  
hsl(290, 60%, 42%)  
hsl(290, 80%, 42%)  
hsl(290, 100%, 42%)  

#9e1eb7 Color Usage In CSS

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