Random Color Generator

#4d4291 Color

Color Codes
Hex Code #4d4291
RGB Code rgb(77, 66, 145)
HSL Code hsl(248, 37%, 41%)

#4d4291 Color Syntax

rgb()

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

 main {
    background-color: rgb(77, 66, 145);
   }

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(248, 37%, 41%);
  }

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 #4d4291

RGB Code Hex Code Preview
rgb(77, 66, 145, 10%) #4d42911a  
rgb(77, 66, 145, 20%) #4d429133  
rgb(77, 66, 145, 40%) #4d42914C  
rgb(77, 66, 145, 60%) #4d429199  
rgb(77, 66, 145, 80%) #4d4291CC  
rgb(77, 66, 145, 100%) #4d4291FF  

Saturated and desaturated colors of #4d4291

HSL Code Preview
hsl(248, 10%, 41%)  
hsl(248, 20%, 41%)  
hsl(248, 40%, 41%)  
hsl(248, 60%, 41%)  
hsl(248, 80%, 41%)  
hsl(248, 100%, 41%)  

#4d4291 Color Usage In CSS

 body {
    color: #4d4291;
    }
 p {
    color: rgb(77, 66, 145);
    }
 header {
    border-bottom:1px solid #4d4291;
    }
Recent Random Colors