Random Color Generator

#7a2ff8 Color

Color Codes
Hex Code #7a2ff8
RGB Code rgb(122, 47, 248)
HSL Code hsl(262, 93%, 58%)

#7a2ff8 Color Syntax

rgb()

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

 main {
    background-color: rgb(122, 47, 248);
   }

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(262, 93%, 58%);
  }

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

RGB Code Hex Code Preview
rgb(122, 47, 248, 10%) #7a2ff81a  
rgb(122, 47, 248, 20%) #7a2ff833  
rgb(122, 47, 248, 40%) #7a2ff84C  
rgb(122, 47, 248, 60%) #7a2ff899  
rgb(122, 47, 248, 80%) #7a2ff8CC  
rgb(122, 47, 248, 100%) #7a2ff8FF  

Saturated and desaturated colors of #7a2ff8

HSL Code Preview
hsl(262, 10%, 58%)  
hsl(262, 20%, 58%)  
hsl(262, 40%, 58%)  
hsl(262, 60%, 58%)  
hsl(262, 80%, 58%)  
hsl(262, 100%, 58%)  

#7a2ff8 Color Usage In CSS

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