Random Color Generator

#5a6bc9 Color

Color Codes
Hex Code #5a6bc9
RGB Code rgb(90, 107, 201)
HSL Code hsl(231, 51%, 57%)

#5a6bc9 Color Syntax

rgb()

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

 main {
    background-color: rgb(90, 107, 201);
   }

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(231, 51%, 57%);
  }

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 #5a6bc9

RGB Code Hex Code Preview
rgb(90, 107, 201, 10%) #5a6bc91a  
rgb(90, 107, 201, 20%) #5a6bc933  
rgb(90, 107, 201, 40%) #5a6bc94C  
rgb(90, 107, 201, 60%) #5a6bc999  
rgb(90, 107, 201, 80%) #5a6bc9CC  
rgb(90, 107, 201, 100%) #5a6bc9FF  

Saturated and desaturated colors of #5a6bc9

HSL Code Preview
hsl(231, 10%, 57%)  
hsl(231, 20%, 57%)  
hsl(231, 40%, 57%)  
hsl(231, 60%, 57%)  
hsl(231, 80%, 57%)  
hsl(231, 100%, 57%)  

#5a6bc9 Color Usage In CSS

 body {
    color: #5a6bc9;
    }
 p {
    color: rgb(90, 107, 201);
    }
 header {
    border-bottom:1px solid #5a6bc9;
    }
Recent Random Colors