Random Color Generator

#9446de Color

Color Codes
Hex Code #9446de
RGB Code rgb(148, 70, 222)
HSL Code hsl(271, 70%, 57%)

#9446de Color Syntax

rgb()

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

 main {
    background-color: rgb(148, 70, 222);
   }

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(271, 70%, 57%);
  }

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 #9446de

RGB Code Hex Code Preview
rgb(148, 70, 222, 10%) #9446de1a  
rgb(148, 70, 222, 20%) #9446de33  
rgb(148, 70, 222, 40%) #9446de4C  
rgb(148, 70, 222, 60%) #9446de99  
rgb(148, 70, 222, 80%) #9446deCC  
rgb(148, 70, 222, 100%) #9446deFF  

Saturated and desaturated colors of #9446de

HSL Code Preview
hsl(271, 10%, 57%)  
hsl(271, 20%, 57%)  
hsl(271, 40%, 57%)  
hsl(271, 60%, 57%)  
hsl(271, 80%, 57%)  
hsl(271, 100%, 57%)  

#9446de Color Usage In CSS

 body {
    color: #9446de;
    }
 p {
    color: rgb(148, 70, 222);
    }
 header {
    border-bottom:1px solid #9446de;
    }
Recent Random Colors