Random Color Generator

#9e2e50 Color

Color Codes
Hex Code #9e2e50
RGB Code rgb(158, 46, 80)
HSL Code hsl(342, 55%, 40%)

#9e2e50 Color Syntax

rgb()

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

 main {
    background-color: rgb(158, 46, 80);
   }

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(342, 55%, 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 #9e2e50

RGB Code Hex Code Preview
rgb(158, 46, 80, 10%) #9e2e501a  
rgb(158, 46, 80, 20%) #9e2e5033  
rgb(158, 46, 80, 40%) #9e2e504C  
rgb(158, 46, 80, 60%) #9e2e5099  
rgb(158, 46, 80, 80%) #9e2e50CC  
rgb(158, 46, 80, 100%) #9e2e50FF  

Saturated and desaturated colors of #9e2e50

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

#9e2e50 Color Usage In CSS

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