Random Color Generator

#5155c6 Color

Color Codes
Hex Code #5155c6
RGB Code rgb(81, 85, 198)
HSL Code hsl(238, 51%, 55%)

#5155c6 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 85, 198);
   }

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(238, 51%, 55%);
  }

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 #5155c6

RGB Code Hex Code Preview
rgb(81, 85, 198, 10%) #5155c61a  
rgb(81, 85, 198, 20%) #5155c633  
rgb(81, 85, 198, 40%) #5155c64C  
rgb(81, 85, 198, 60%) #5155c699  
rgb(81, 85, 198, 80%) #5155c6CC  
rgb(81, 85, 198, 100%) #5155c6FF  

Saturated and desaturated colors of #5155c6

HSL Code Preview
hsl(238, 10%, 55%)  
hsl(238, 20%, 55%)  
hsl(238, 40%, 55%)  
hsl(238, 60%, 55%)  
hsl(238, 80%, 55%)  
hsl(238, 100%, 55%)  

#5155c6 Color Usage In CSS

 body {
    color: #5155c6;
    }
 p {
    color: rgb(81, 85, 198);
    }
 header {
    border-bottom:1px solid #5155c6;
    }
Recent Random Colors