Random Color Generator

#9b8fe9 Color

Color Codes
Hex Code #9b8fe9
RGB Code rgb(155, 143, 233)
HSL Code hsl(248, 67%, 74%)

#9b8fe9 Color Syntax

rgb()

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

 main {
    background-color: rgb(155, 143, 233);
   }

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(248, 67%, 74%);
  }

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

RGB Code Hex Code Preview
rgb(155, 143, 233, 10%) #9b8fe91a  
rgb(155, 143, 233, 20%) #9b8fe933  
rgb(155, 143, 233, 40%) #9b8fe94C  
rgb(155, 143, 233, 60%) #9b8fe999  
rgb(155, 143, 233, 80%) #9b8fe9CC  
rgb(155, 143, 233, 100%) #9b8fe9FF  

Saturated and desaturated colors of #9b8fe9

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

#9b8fe9 Color Usage In CSS

 body {
    color: #9b8fe9;
    }
 p {
    color: rgb(155, 143, 233);
    }
 header {
    border-bottom:1px solid #9b8fe9;
    }
Recent Random Colors