Random Color Generator

#9f2e48 Color

Color Codes
Hex Code #9f2e48
RGB Code rgb(159, 46, 72)
HSL Code hsl(346, 55%, 40%)

#9f2e48 Color Syntax

rgb()

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

 main {
    background-color: rgb(159, 46, 72);
   }

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(346, 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 #9f2e48

RGB Code Hex Code Preview
rgb(159, 46, 72, 10%) #9f2e481a  
rgb(159, 46, 72, 20%) #9f2e4833  
rgb(159, 46, 72, 40%) #9f2e484C  
rgb(159, 46, 72, 60%) #9f2e4899  
rgb(159, 46, 72, 80%) #9f2e48CC  
rgb(159, 46, 72, 100%) #9f2e48FF  

Saturated and desaturated colors of #9f2e48

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

#9f2e48 Color Usage In CSS

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