Random Color Generator

#7f38ac Color

Color Codes
Hex Code #7f38ac
RGB Code rgb(127, 56, 172)
HSL Code hsl(277, 51%, 45%)

#7f38ac Color Syntax

rgb()

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

 main {
    background-color: rgb(127, 56, 172);
   }

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(277, 51%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(127, 56, 172, 10%) #7f38ac1a  
rgb(127, 56, 172, 20%) #7f38ac33  
rgb(127, 56, 172, 40%) #7f38ac4C  
rgb(127, 56, 172, 60%) #7f38ac99  
rgb(127, 56, 172, 80%) #7f38acCC  
rgb(127, 56, 172, 100%) #7f38acFF  

Saturated and desaturated colors of #7f38ac

HSL Code Preview
hsl(277, 10%, 45%)  
hsl(277, 20%, 45%)  
hsl(277, 40%, 45%)  
hsl(277, 60%, 45%)  
hsl(277, 80%, 45%)  
hsl(277, 100%, 45%)  

#7f38ac Color Usage In CSS

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