Random Color Generator

#5220a0 Color

Color Codes
Hex Code #5220a0
RGB Code rgb(82, 32, 160)
HSL Code hsl(263, 67%, 38%)

#5220a0 Color Syntax

rgb()

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

 main {
    background-color: rgb(82, 32, 160);
   }

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(263, 67%, 38%);
  }

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 #5220a0

RGB Code Hex Code Preview
rgb(82, 32, 160, 10%) #5220a01a  
rgb(82, 32, 160, 20%) #5220a033  
rgb(82, 32, 160, 40%) #5220a04C  
rgb(82, 32, 160, 60%) #5220a099  
rgb(82, 32, 160, 80%) #5220a0CC  
rgb(82, 32, 160, 100%) #5220a0FF  

Saturated and desaturated colors of #5220a0

HSL Code Preview
hsl(263, 10%, 38%)  
hsl(263, 20%, 38%)  
hsl(263, 40%, 38%)  
hsl(263, 60%, 38%)  
hsl(263, 80%, 38%)  
hsl(263, 100%, 38%)  

#5220a0 Color Usage In CSS

 body {
    color: #5220a0;
    }
 p {
    color: rgb(82, 32, 160);
    }
 header {
    border-bottom:1px solid #5220a0;
    }
Recent Random Colors