Random Color Generator

#870477 Color

Color Codes
Hex Code #870477
RGB Code rgb(135, 04, 119)
HSL Code hsl(307, 94%, 27%)

#870477 Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 04, 119);
   }

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(307, 94%, 27%);
  }

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 #870477

RGB Code Hex Code Preview
rgb(135, 04, 119, 10%) #8704771a  
rgb(135, 04, 119, 20%) #87047733  
rgb(135, 04, 119, 40%) #8704774C  
rgb(135, 04, 119, 60%) #87047799  
rgb(135, 04, 119, 80%) #870477CC  
rgb(135, 04, 119, 100%) #870477FF  

Saturated and desaturated colors of #870477

HSL Code Preview
hsl(307, 10%, 27%)  
hsl(307, 20%, 27%)  
hsl(307, 40%, 27%)  
hsl(307, 60%, 27%)  
hsl(307, 80%, 27%)  
hsl(307, 100%, 27%)  

#870477 Color Usage In CSS

 body {
    color: #870477;
    }
 p {
    color: rgb(135, 04, 119);
    }
 header {
    border-bottom:1px solid #870477;
    }
Recent Random Colors