Random Color Generator

#7f15aa Color

Color Codes
Hex Code #7f15aa
RGB Code rgb(127, 21, 170)
HSL Code hsl(283, 78%, 37%)

#7f15aa Color Syntax

rgb()

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

 main {
    background-color: rgb(127, 21, 170);
   }

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(283, 78%, 37%);
  }

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

RGB Code Hex Code Preview
rgb(127, 21, 170, 10%) #7f15aa1a  
rgb(127, 21, 170, 20%) #7f15aa33  
rgb(127, 21, 170, 40%) #7f15aa4C  
rgb(127, 21, 170, 60%) #7f15aa99  
rgb(127, 21, 170, 80%) #7f15aaCC  
rgb(127, 21, 170, 100%) #7f15aaFF  

Saturated and desaturated colors of #7f15aa

HSL Code Preview
hsl(283, 10%, 37%)  
hsl(283, 20%, 37%)  
hsl(283, 40%, 37%)  
hsl(283, 60%, 37%)  
hsl(283, 80%, 37%)  
hsl(283, 100%, 37%)  

#7f15aa Color Usage In CSS

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