Random Color Generator

#7f46af Color

Color Codes
Hex Code #7f46af
RGB Code rgb(127, 70, 175)
HSL Code hsl(273, 43%, 48%)

#7f46af Color Syntax

rgb()

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

 main {
    background-color: rgb(127, 70, 175);
   }

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(273, 43%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(127, 70, 175, 10%) #7f46af1a  
rgb(127, 70, 175, 20%) #7f46af33  
rgb(127, 70, 175, 40%) #7f46af4C  
rgb(127, 70, 175, 60%) #7f46af99  
rgb(127, 70, 175, 80%) #7f46afCC  
rgb(127, 70, 175, 100%) #7f46afFF  

Saturated and desaturated colors of #7f46af

HSL Code Preview
hsl(273, 10%, 48%)  
hsl(273, 20%, 48%)  
hsl(273, 40%, 48%)  
hsl(273, 60%, 48%)  
hsl(273, 80%, 48%)  
hsl(273, 100%, 48%)  

#7f46af Color Usage In CSS

 body {
    color: #7f46af;
    }
 p {
    color: rgb(127, 70, 175);
    }
 header {
    border-bottom:1px solid #7f46af;
    }
Recent Random Colors