Random Color Generator

#7a0bad Color

Color Codes
Hex Code #7a0bad
RGB Code rgb(122, 11, 173)
HSL Code hsl(281, 88%, 36%)

#7a0bad Color Syntax

rgb()

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

 main {
    background-color: rgb(122, 11, 173);
   }

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(281, 88%, 36%);
  }

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

RGB Code Hex Code Preview
rgb(122, 11, 173, 10%) #7a0bad1a  
rgb(122, 11, 173, 20%) #7a0bad33  
rgb(122, 11, 173, 40%) #7a0bad4C  
rgb(122, 11, 173, 60%) #7a0bad99  
rgb(122, 11, 173, 80%) #7a0badCC  
rgb(122, 11, 173, 100%) #7a0badFF  

Saturated and desaturated colors of #7a0bad

HSL Code Preview
hsl(281, 10%, 36%)  
hsl(281, 20%, 36%)  
hsl(281, 40%, 36%)  
hsl(281, 60%, 36%)  
hsl(281, 80%, 36%)  
hsl(281, 100%, 36%)  

#7a0bad Color Usage In CSS

 body {
    color: #7a0bad;
    }
 p {
    color: rgb(122, 11, 173);
    }
 header {
    border-bottom:1px solid #7a0bad;
    }
Recent Random Colors