Random Color Generator

#8722d2 Color

Color Codes
Hex Code #8722d2
RGB Code rgb(135, 34, 210)
HSL Code hsl(274, 72%, 48%)

#8722d2 Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 34, 210);
   }

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(274, 72%, 48%);
  }

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 #8722d2

RGB Code Hex Code Preview
rgb(135, 34, 210, 10%) #8722d21a  
rgb(135, 34, 210, 20%) #8722d233  
rgb(135, 34, 210, 40%) #8722d24C  
rgb(135, 34, 210, 60%) #8722d299  
rgb(135, 34, 210, 80%) #8722d2CC  
rgb(135, 34, 210, 100%) #8722d2FF  

Saturated and desaturated colors of #8722d2

HSL Code Preview
hsl(274, 10%, 48%)  
hsl(274, 20%, 48%)  
hsl(274, 40%, 48%)  
hsl(274, 60%, 48%)  
hsl(274, 80%, 48%)  
hsl(274, 100%, 48%)  

#8722d2 Color Usage In CSS

 body {
    color: #8722d2;
    }
 p {
    color: rgb(135, 34, 210);
    }
 header {
    border-bottom:1px solid #8722d2;
    }
Recent Random Colors