Random Color Generator

#5247fd Color

Color Codes
Hex Code #5247fd
RGB Code rgb(82, 71, 253)
HSL Code hsl(244, 98%, 64%)

#5247fd Color Syntax

rgb()

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

 main {
    background-color: rgb(82, 71, 253);
   }

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(244, 98%, 64%);
  }

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 #5247fd

RGB Code Hex Code Preview
rgb(82, 71, 253, 10%) #5247fd1a  
rgb(82, 71, 253, 20%) #5247fd33  
rgb(82, 71, 253, 40%) #5247fd4C  
rgb(82, 71, 253, 60%) #5247fd99  
rgb(82, 71, 253, 80%) #5247fdCC  
rgb(82, 71, 253, 100%) #5247fdFF  

Saturated and desaturated colors of #5247fd

HSL Code Preview
hsl(244, 10%, 64%)  
hsl(244, 20%, 64%)  
hsl(244, 40%, 64%)  
hsl(244, 60%, 64%)  
hsl(244, 80%, 64%)  
hsl(244, 100%, 64%)  

#5247fd Color Usage In CSS

 body {
    color: #5247fd;
    }
 p {
    color: rgb(82, 71, 253);
    }
 header {
    border-bottom:1px solid #5247fd;
    }
Recent Random Colors