Random Color Generator

#862e87 Color

Color Codes
Hex Code #862e87
RGB Code rgb(134, 46, 135)
HSL Code hsl(299, 49%, 35%)

#862e87 Color Syntax

rgb()

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

 main {
    background-color: rgb(134, 46, 135);
   }

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(299, 49%, 35%);
  }

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 #862e87

RGB Code Hex Code Preview
rgb(134, 46, 135, 10%) #862e871a  
rgb(134, 46, 135, 20%) #862e8733  
rgb(134, 46, 135, 40%) #862e874C  
rgb(134, 46, 135, 60%) #862e8799  
rgb(134, 46, 135, 80%) #862e87CC  
rgb(134, 46, 135, 100%) #862e87FF  

Saturated and desaturated colors of #862e87

HSL Code Preview
hsl(299, 10%, 35%)  
hsl(299, 20%, 35%)  
hsl(299, 40%, 35%)  
hsl(299, 60%, 35%)  
hsl(299, 80%, 35%)  
hsl(299, 100%, 35%)  

#862e87 Color Usage In CSS

 body {
    color: #862e87;
    }
 p {
    color: rgb(134, 46, 135);
    }
 header {
    border-bottom:1px solid #862e87;
    }
Recent Random Colors