Random Color Generator

#872eb7 Color

Color Codes
Hex Code #872eb7
RGB Code rgb(135, 46, 183)
HSL Code hsl(279, 60%, 45%)

#872eb7 Color Syntax

rgb()

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

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

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(279, 60%, 45%);
  }

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 #872eb7

RGB Code Hex Code Preview
rgb(135, 46, 183, 10%) #872eb71a  
rgb(135, 46, 183, 20%) #872eb733  
rgb(135, 46, 183, 40%) #872eb74C  
rgb(135, 46, 183, 60%) #872eb799  
rgb(135, 46, 183, 80%) #872eb7CC  
rgb(135, 46, 183, 100%) #872eb7FF  

Saturated and desaturated colors of #872eb7

HSL Code Preview
hsl(279, 10%, 45%)  
hsl(279, 20%, 45%)  
hsl(279, 40%, 45%)  
hsl(279, 60%, 45%)  
hsl(279, 80%, 45%)  
hsl(279, 100%, 45%)  

#872eb7 Color Usage In CSS

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