Random Color Generator

#870ecf Color

Color Codes
Hex Code #870ecf
RGB Code rgb(135, 14, 207)
HSL Code hsl(278, 87%, 43%)

#870ecf Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 14, 207);
   }

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(278, 87%, 43%);
  }

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 #870ecf

RGB Code Hex Code Preview
rgb(135, 14, 207, 10%) #870ecf1a  
rgb(135, 14, 207, 20%) #870ecf33  
rgb(135, 14, 207, 40%) #870ecf4C  
rgb(135, 14, 207, 60%) #870ecf99  
rgb(135, 14, 207, 80%) #870ecfCC  
rgb(135, 14, 207, 100%) #870ecfFF  

Saturated and desaturated colors of #870ecf

HSL Code Preview
hsl(278, 10%, 43%)  
hsl(278, 20%, 43%)  
hsl(278, 40%, 43%)  
hsl(278, 60%, 43%)  
hsl(278, 80%, 43%)  
hsl(278, 100%, 43%)  

#870ecf Color Usage In CSS

 body {
    color: #870ecf;
    }
 p {
    color: rgb(135, 14, 207);
    }
 header {
    border-bottom:1px solid #870ecf;
    }
Recent Random Colors