Random Color Generator

#7f34ed Color

Color Codes
Hex Code #7f34ed
RGB Code rgb(127, 52, 237)
HSL Code hsl(264, 84%, 57%)

#7f34ed Color Syntax

rgb()

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

 main {
    background-color: rgb(127, 52, 237);
   }

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(264, 84%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(127, 52, 237, 10%) #7f34ed1a  
rgb(127, 52, 237, 20%) #7f34ed33  
rgb(127, 52, 237, 40%) #7f34ed4C  
rgb(127, 52, 237, 60%) #7f34ed99  
rgb(127, 52, 237, 80%) #7f34edCC  
rgb(127, 52, 237, 100%) #7f34edFF  

Saturated and desaturated colors of #7f34ed

HSL Code Preview
hsl(264, 10%, 57%)  
hsl(264, 20%, 57%)  
hsl(264, 40%, 57%)  
hsl(264, 60%, 57%)  
hsl(264, 80%, 57%)  
hsl(264, 100%, 57%)  

#7f34ed Color Usage In CSS

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