Random Color Generator

#9a1c52 Color

Color Codes
Hex Code #9a1c52
RGB Code rgb(154, 28, 82)
HSL Code hsl(334, 69%, 36%)

#9a1c52 Color Syntax

rgb()

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

 main {
    background-color: rgb(154, 28, 82);
   }

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(334, 69%, 36%);
  }

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

RGB Code Hex Code Preview
rgb(154, 28, 82, 10%) #9a1c521a  
rgb(154, 28, 82, 20%) #9a1c5233  
rgb(154, 28, 82, 40%) #9a1c524C  
rgb(154, 28, 82, 60%) #9a1c5299  
rgb(154, 28, 82, 80%) #9a1c52CC  
rgb(154, 28, 82, 100%) #9a1c52FF  

Saturated and desaturated colors of #9a1c52

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

#9a1c52 Color Usage In CSS

 body {
    color: #9a1c52;
    }
 p {
    color: rgb(154, 28, 82);
    }
 header {
    border-bottom:1px solid #9a1c52;
    }
Recent Random Colors