Random Color Generator

#9d1a47 Color

Color Codes
Hex Code #9d1a47
RGB Code rgb(157, 26, 71)
HSL Code hsl(339, 72%, 36%)

#9d1a47 Color Syntax

rgb()

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

 main {
    background-color: rgb(157, 26, 71);
   }

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(339, 72%, 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 #9d1a47

RGB Code Hex Code Preview
rgb(157, 26, 71, 10%) #9d1a471a  
rgb(157, 26, 71, 20%) #9d1a4733  
rgb(157, 26, 71, 40%) #9d1a474C  
rgb(157, 26, 71, 60%) #9d1a4799  
rgb(157, 26, 71, 80%) #9d1a47CC  
rgb(157, 26, 71, 100%) #9d1a47FF  

Saturated and desaturated colors of #9d1a47

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

#9d1a47 Color Usage In CSS

 body {
    color: #9d1a47;
    }
 p {
    color: rgb(157, 26, 71);
    }
 header {
    border-bottom:1px solid #9d1a47;
    }
Recent Random Colors