Random Color Generator

#9c306d Color

Color Codes
Hex Code #9c306d
RGB Code rgb(156, 48, 109)
HSL Code hsl(326, 53%, 40%)

#9c306d Color Syntax

rgb()

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

 main {
    background-color: rgb(156, 48, 109);
   }

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(326, 53%, 40%);
  }

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

RGB Code Hex Code Preview
rgb(156, 48, 109, 10%) #9c306d1a  
rgb(156, 48, 109, 20%) #9c306d33  
rgb(156, 48, 109, 40%) #9c306d4C  
rgb(156, 48, 109, 60%) #9c306d99  
rgb(156, 48, 109, 80%) #9c306dCC  
rgb(156, 48, 109, 100%) #9c306dFF  

Saturated and desaturated colors of #9c306d

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

#9c306d Color Usage In CSS

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