Random Color Generator

#9137cc Color

Color Codes
Hex Code #9137cc
RGB Code rgb(145, 55, 204)
HSL Code hsl(276, 59%, 51%)

#9137cc Color Syntax

rgb()

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

 main {
    background-color: rgb(145, 55, 204);
   }

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(276, 59%, 51%);
  }

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 #9137cc

RGB Code Hex Code Preview
rgb(145, 55, 204, 10%) #9137cc1a  
rgb(145, 55, 204, 20%) #9137cc33  
rgb(145, 55, 204, 40%) #9137cc4C  
rgb(145, 55, 204, 60%) #9137cc99  
rgb(145, 55, 204, 80%) #9137ccCC  
rgb(145, 55, 204, 100%) #9137ccFF  

Saturated and desaturated colors of #9137cc

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

#9137cc Color Usage In CSS

 body {
    color: #9137cc;
    }
 p {
    color: rgb(145, 55, 204);
    }
 header {
    border-bottom:1px solid #9137cc;
    }
Recent Random Colors