Random Color Generator

#9c4aad Color

Color Codes
Hex Code #9c4aad
RGB Code rgb(156, 74, 173)
HSL Code hsl(290, 40%, 48%)

#9c4aad Color Syntax

rgb()

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

 main {
    background-color: rgb(156, 74, 173);
   }

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, 40%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(156, 74, 173, 10%) #9c4aad1a  
rgb(156, 74, 173, 20%) #9c4aad33  
rgb(156, 74, 173, 40%) #9c4aad4C  
rgb(156, 74, 173, 60%) #9c4aad99  
rgb(156, 74, 173, 80%) #9c4aadCC  
rgb(156, 74, 173, 100%) #9c4aadFF  

Saturated and desaturated colors of #9c4aad

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

#9c4aad Color Usage In CSS

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