Random Color Generator

#5748d9 Color

Color Codes
Hex Code #5748d9
RGB Code rgb(87, 72, 217)
HSL Code hsl(246, 66%, 57%)

#5748d9 Color Syntax

rgb()

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

 main {
    background-color: rgb(87, 72, 217);
   }

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(246, 66%, 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 #5748d9

RGB Code Hex Code Preview
rgb(87, 72, 217, 10%) #5748d91a  
rgb(87, 72, 217, 20%) #5748d933  
rgb(87, 72, 217, 40%) #5748d94C  
rgb(87, 72, 217, 60%) #5748d999  
rgb(87, 72, 217, 80%) #5748d9CC  
rgb(87, 72, 217, 100%) #5748d9FF  

Saturated and desaturated colors of #5748d9

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

#5748d9 Color Usage In CSS

 body {
    color: #5748d9;
    }
 p {
    color: rgb(87, 72, 217);
    }
 header {
    border-bottom:1px solid #5748d9;
    }
Recent Random Colors