Random Color Generator

#4a2da9 Color

Color Codes
Hex Code #4a2da9
RGB Code rgb(74, 45, 169)
HSL Code hsl(254, 58%, 42%)

#4a2da9 Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 45, 169);
   }

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(254, 58%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(74, 45, 169, 10%) #4a2da91a  
rgb(74, 45, 169, 20%) #4a2da933  
rgb(74, 45, 169, 40%) #4a2da94C  
rgb(74, 45, 169, 60%) #4a2da999  
rgb(74, 45, 169, 80%) #4a2da9CC  
rgb(74, 45, 169, 100%) #4a2da9FF  

Saturated and desaturated colors of #4a2da9

HSL Code Preview
hsl(254, 10%, 42%)  
hsl(254, 20%, 42%)  
hsl(254, 40%, 42%)  
hsl(254, 60%, 42%)  
hsl(254, 80%, 42%)  
hsl(254, 100%, 42%)  

#4a2da9 Color Usage In CSS

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