Random Color Generator

#5339ae Color

Color Codes
Hex Code #5339ae
RGB Code rgb(83, 57, 174)
HSL Code hsl(253, 51%, 45%)

#5339ae Color Syntax

rgb()

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

 main {
    background-color: rgb(83, 57, 174);
   }

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(253, 51%, 45%);
  }

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 #5339ae

RGB Code Hex Code Preview
rgb(83, 57, 174, 10%) #5339ae1a  
rgb(83, 57, 174, 20%) #5339ae33  
rgb(83, 57, 174, 40%) #5339ae4C  
rgb(83, 57, 174, 60%) #5339ae99  
rgb(83, 57, 174, 80%) #5339aeCC  
rgb(83, 57, 174, 100%) #5339aeFF  

Saturated and desaturated colors of #5339ae

HSL Code Preview
hsl(253, 10%, 45%)  
hsl(253, 20%, 45%)  
hsl(253, 40%, 45%)  
hsl(253, 60%, 45%)  
hsl(253, 80%, 45%)  
hsl(253, 100%, 45%)  

#5339ae Color Usage In CSS

 body {
    color: #5339ae;
    }
 p {
    color: rgb(83, 57, 174);
    }
 header {
    border-bottom:1px solid #5339ae;
    }
Recent Random Colors