Random Color Generator

#7815da Color

Color Codes
Hex Code #7815da
RGB Code rgb(120, 21, 218)
HSL Code hsl(270, 82%, 47%)

#7815da Color Syntax

rgb()

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

 main {
    background-color: rgb(120, 21, 218);
   }

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(270, 82%, 47%);
  }

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 #7815da

RGB Code Hex Code Preview
rgb(120, 21, 218, 10%) #7815da1a  
rgb(120, 21, 218, 20%) #7815da33  
rgb(120, 21, 218, 40%) #7815da4C  
rgb(120, 21, 218, 60%) #7815da99  
rgb(120, 21, 218, 80%) #7815daCC  
rgb(120, 21, 218, 100%) #7815daFF  

Saturated and desaturated colors of #7815da

HSL Code Preview
hsl(270, 10%, 47%)  
hsl(270, 20%, 47%)  
hsl(270, 40%, 47%)  
hsl(270, 60%, 47%)  
hsl(270, 80%, 47%)  
hsl(270, 100%, 47%)  

#7815da Color Usage In CSS

 body {
    color: #7815da;
    }
 p {
    color: rgb(120, 21, 218);
    }
 header {
    border-bottom:1px solid #7815da;
    }
Recent Random Colors