Random Color Generator

#9845bd Color

Color Codes
Hex Code #9845bd
RGB Code rgb(152, 69, 189)
HSL Code hsl(282, 48%, 51%)

#9845bd Color Syntax

rgb()

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

 main {
    background-color: rgb(152, 69, 189);
   }

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(282, 48%, 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 #9845bd

RGB Code Hex Code Preview
rgb(152, 69, 189, 10%) #9845bd1a  
rgb(152, 69, 189, 20%) #9845bd33  
rgb(152, 69, 189, 40%) #9845bd4C  
rgb(152, 69, 189, 60%) #9845bd99  
rgb(152, 69, 189, 80%) #9845bdCC  
rgb(152, 69, 189, 100%) #9845bdFF  

Saturated and desaturated colors of #9845bd

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

#9845bd Color Usage In CSS

 body {
    color: #9845bd;
    }
 p {
    color: rgb(152, 69, 189);
    }
 header {
    border-bottom:1px solid #9845bd;
    }
Recent Random Colors