Random Color Generator

#9871d5 Color

Color Codes
Hex Code #9871d5
RGB Code rgb(152, 113, 213)
HSL Code hsl(263, 54%, 64%)

#9871d5 Color Syntax

rgb()

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

 main {
    background-color: rgb(152, 113, 213);
   }

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(263, 54%, 64%);
  }

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 #9871d5

RGB Code Hex Code Preview
rgb(152, 113, 213, 10%) #9871d51a  
rgb(152, 113, 213, 20%) #9871d533  
rgb(152, 113, 213, 40%) #9871d54C  
rgb(152, 113, 213, 60%) #9871d599  
rgb(152, 113, 213, 80%) #9871d5CC  
rgb(152, 113, 213, 100%) #9871d5FF  

Saturated and desaturated colors of #9871d5

HSL Code Preview
hsl(263, 10%, 64%)  
hsl(263, 20%, 64%)  
hsl(263, 40%, 64%)  
hsl(263, 60%, 64%)  
hsl(263, 80%, 64%)  
hsl(263, 100%, 64%)  

#9871d5 Color Usage In CSS

 body {
    color: #9871d5;
    }
 p {
    color: rgb(152, 113, 213);
    }
 header {
    border-bottom:1px solid #9871d5;
    }
Recent Random Colors