Random Color Generator

#9d6efa Color

Color Codes
Hex Code #9d6efa
RGB Code rgb(157, 110, 250)
HSL Code hsl(260, 93%, 71%)

#9d6efa Color Syntax

rgb()

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

 main {
    background-color: rgb(157, 110, 250);
   }

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(260, 93%, 71%);
  }

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

RGB Code Hex Code Preview
rgb(157, 110, 250, 10%) #9d6efa1a  
rgb(157, 110, 250, 20%) #9d6efa33  
rgb(157, 110, 250, 40%) #9d6efa4C  
rgb(157, 110, 250, 60%) #9d6efa99  
rgb(157, 110, 250, 80%) #9d6efaCC  
rgb(157, 110, 250, 100%) #9d6efaFF  

Saturated and desaturated colors of #9d6efa

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

#9d6efa Color Usage In CSS

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