Random Color Generator

#5262fa Color

Color Codes
Hex Code #5262fa
RGB Code rgb(82, 98, 250)
HSL Code hsl(234, 94%, 65%)

#5262fa Color Syntax

rgb()

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

 main {
    background-color: rgb(82, 98, 250);
   }

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(234, 94%, 65%);
  }

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 #5262fa

RGB Code Hex Code Preview
rgb(82, 98, 250, 10%) #5262fa1a  
rgb(82, 98, 250, 20%) #5262fa33  
rgb(82, 98, 250, 40%) #5262fa4C  
rgb(82, 98, 250, 60%) #5262fa99  
rgb(82, 98, 250, 80%) #5262faCC  
rgb(82, 98, 250, 100%) #5262faFF  

Saturated and desaturated colors of #5262fa

HSL Code Preview
hsl(234, 10%, 65%)  
hsl(234, 20%, 65%)  
hsl(234, 40%, 65%)  
hsl(234, 60%, 65%)  
hsl(234, 80%, 65%)  
hsl(234, 100%, 65%)  

#5262fa Color Usage In CSS

 body {
    color: #5262fa;
    }
 p {
    color: rgb(82, 98, 250);
    }
 header {
    border-bottom:1px solid #5262fa;
    }
Recent Random Colors