Random Color Generator

#4d4fba Color

Color Codes
Hex Code #4d4fba
RGB Code rgb(77, 79, 186)
HSL Code hsl(239, 44%, 52%)

#4d4fba Color Syntax

rgb()

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

 main {
    background-color: rgb(77, 79, 186);
   }

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(239, 44%, 52%);
  }

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

RGB Code Hex Code Preview
rgb(77, 79, 186, 10%) #4d4fba1a  
rgb(77, 79, 186, 20%) #4d4fba33  
rgb(77, 79, 186, 40%) #4d4fba4C  
rgb(77, 79, 186, 60%) #4d4fba99  
rgb(77, 79, 186, 80%) #4d4fbaCC  
rgb(77, 79, 186, 100%) #4d4fbaFF  

Saturated and desaturated colors of #4d4fba

HSL Code Preview
hsl(239, 10%, 52%)  
hsl(239, 20%, 52%)  
hsl(239, 40%, 52%)  
hsl(239, 60%, 52%)  
hsl(239, 80%, 52%)  
hsl(239, 100%, 52%)  

#4d4fba Color Usage In CSS

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