Random Color Generator

#9e3c97 Color

Color Codes
Hex Code #9e3c97
RGB Code rgb(158, 60, 151)
HSL Code hsl(304, 45%, 43%)

#9e3c97 Color Syntax

rgb()

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

 main {
    background-color: rgb(158, 60, 151);
   }

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(304, 45%, 43%);
  }

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

RGB Code Hex Code Preview
rgb(158, 60, 151, 10%) #9e3c971a  
rgb(158, 60, 151, 20%) #9e3c9733  
rgb(158, 60, 151, 40%) #9e3c974C  
rgb(158, 60, 151, 60%) #9e3c9799  
rgb(158, 60, 151, 80%) #9e3c97CC  
rgb(158, 60, 151, 100%) #9e3c97FF  

Saturated and desaturated colors of #9e3c97

HSL Code Preview
hsl(304, 10%, 43%)  
hsl(304, 20%, 43%)  
hsl(304, 40%, 43%)  
hsl(304, 60%, 43%)  
hsl(304, 80%, 43%)  
hsl(304, 100%, 43%)  

#9e3c97 Color Usage In CSS

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