Random Color Generator

#5946cb Color

Color Codes
Hex Code #5946cb
RGB Code rgb(89, 70, 203)
HSL Code hsl(249, 56%, 54%)

#5946cb Color Syntax

rgb()

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

 main {
    background-color: rgb(89, 70, 203);
   }

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(249, 56%, 54%);
  }

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 #5946cb

RGB Code Hex Code Preview
rgb(89, 70, 203, 10%) #5946cb1a  
rgb(89, 70, 203, 20%) #5946cb33  
rgb(89, 70, 203, 40%) #5946cb4C  
rgb(89, 70, 203, 60%) #5946cb99  
rgb(89, 70, 203, 80%) #5946cbCC  
rgb(89, 70, 203, 100%) #5946cbFF  

Saturated and desaturated colors of #5946cb

HSL Code Preview
hsl(249, 10%, 54%)  
hsl(249, 20%, 54%)  
hsl(249, 40%, 54%)  
hsl(249, 60%, 54%)  
hsl(249, 80%, 54%)  
hsl(249, 100%, 54%)  

#5946cb Color Usage In CSS

 body {
    color: #5946cb;
    }
 p {
    color: rgb(89, 70, 203);
    }
 header {
    border-bottom:1px solid #5946cb;
    }
Recent Random Colors