Random Color Generator

#9f2ebb Color

Color Codes
Hex Code #9f2ebb
RGB Code rgb(159, 46, 187)
HSL Code hsl(288, 61%, 46%)

#9f2ebb Color Syntax

rgb()

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

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

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(288, 61%, 46%);
  }

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

RGB Code Hex Code Preview
rgb(159, 46, 187, 10%) #9f2ebb1a  
rgb(159, 46, 187, 20%) #9f2ebb33  
rgb(159, 46, 187, 40%) #9f2ebb4C  
rgb(159, 46, 187, 60%) #9f2ebb99  
rgb(159, 46, 187, 80%) #9f2ebbCC  
rgb(159, 46, 187, 100%) #9f2ebbFF  

Saturated and desaturated colors of #9f2ebb

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

#9f2ebb Color Usage In CSS

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