Random Color Generator

#7e187d Color

Color Codes
Hex Code #7e187d
RGB Code rgb(126, 24, 125)
HSL Code hsl(301, 68%, 29%)

#7e187d Color Syntax

rgb()

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

 main {
    background-color: rgb(126, 24, 125);
   }

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(301, 68%, 29%);
  }

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

RGB Code Hex Code Preview
rgb(126, 24, 125, 10%) #7e187d1a  
rgb(126, 24, 125, 20%) #7e187d33  
rgb(126, 24, 125, 40%) #7e187d4C  
rgb(126, 24, 125, 60%) #7e187d99  
rgb(126, 24, 125, 80%) #7e187dCC  
rgb(126, 24, 125, 100%) #7e187dFF  

Saturated and desaturated colors of #7e187d

HSL Code Preview
hsl(301, 10%, 29%)  
hsl(301, 20%, 29%)  
hsl(301, 40%, 29%)  
hsl(301, 60%, 29%)  
hsl(301, 80%, 29%)  
hsl(301, 100%, 29%)  

#7e187d Color Usage In CSS

 body {
    color: #7e187d;
    }
 p {
    color: rgb(126, 24, 125);
    }
 header {
    border-bottom:1px solid #7e187d;
    }
Recent Random Colors