Random Color Generator

#4a3aab Color

Color Codes
Hex Code #4a3aab
RGB Code rgb(74, 58, 171)
HSL Code hsl(248, 49%, 45%)

#4a3aab Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 58, 171);
   }

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, 49%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(74, 58, 171, 10%) #4a3aab1a  
rgb(74, 58, 171, 20%) #4a3aab33  
rgb(74, 58, 171, 40%) #4a3aab4C  
rgb(74, 58, 171, 60%) #4a3aab99  
rgb(74, 58, 171, 80%) #4a3aabCC  
rgb(74, 58, 171, 100%) #4a3aabFF  

Saturated and desaturated colors of #4a3aab

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

#4a3aab Color Usage In CSS

 body {
    color: #4a3aab;
    }
 p {
    color: rgb(74, 58, 171);
    }
 header {
    border-bottom:1px solid #4a3aab;
    }
Recent Random Colors