Random Color Generator

#9a6bd3 Color

Color Codes
Hex Code #9a6bd3
RGB Code rgb(154, 107, 211)
HSL Code hsl(267, 54%, 62%)

#9a6bd3 Color Syntax

rgb()

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

 main {
    background-color: rgb(154, 107, 211);
   }

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(267, 54%, 62%);
  }

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

RGB Code Hex Code Preview
rgb(154, 107, 211, 10%) #9a6bd31a  
rgb(154, 107, 211, 20%) #9a6bd333  
rgb(154, 107, 211, 40%) #9a6bd34C  
rgb(154, 107, 211, 60%) #9a6bd399  
rgb(154, 107, 211, 80%) #9a6bd3CC  
rgb(154, 107, 211, 100%) #9a6bd3FF  

Saturated and desaturated colors of #9a6bd3

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

#9a6bd3 Color Usage In CSS

 body {
    color: #9a6bd3;
    }
 p {
    color: rgb(154, 107, 211);
    }
 header {
    border-bottom:1px solid #9a6bd3;
    }
Recent Random Colors