Random Color Generator

#7e0186 Color

Color Codes
Hex Code #7e0186
RGB Code rgb(126, 01, 134)
HSL Code hsl(296, 99%, 26%)

#7e0186 Color Syntax

rgb()

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

 main {
    background-color: rgb(126, 01, 134);
   }

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(296, 99%, 26%);
  }

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

RGB Code Hex Code Preview
rgb(126, 01, 134, 10%) #7e01861a  
rgb(126, 01, 134, 20%) #7e018633  
rgb(126, 01, 134, 40%) #7e01864C  
rgb(126, 01, 134, 60%) #7e018699  
rgb(126, 01, 134, 80%) #7e0186CC  
rgb(126, 01, 134, 100%) #7e0186FF  

Saturated and desaturated colors of #7e0186

HSL Code Preview
hsl(296, 10%, 26%)  
hsl(296, 20%, 26%)  
hsl(296, 40%, 26%)  
hsl(296, 60%, 26%)  
hsl(296, 80%, 26%)  
hsl(296, 100%, 26%)  

#7e0186 Color Usage In CSS

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