Random Color Generator

#4a2e84 Color

Color Codes
Hex Code #4a2e84
RGB Code rgb(74, 46, 132)
HSL Code hsl(260, 48%, 35%)

#4a2e84 Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 46, 132);
   }

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(260, 48%, 35%);
  }

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

RGB Code Hex Code Preview
rgb(74, 46, 132, 10%) #4a2e841a  
rgb(74, 46, 132, 20%) #4a2e8433  
rgb(74, 46, 132, 40%) #4a2e844C  
rgb(74, 46, 132, 60%) #4a2e8499  
rgb(74, 46, 132, 80%) #4a2e84CC  
rgb(74, 46, 132, 100%) #4a2e84FF  

Saturated and desaturated colors of #4a2e84

HSL Code Preview
hsl(260, 10%, 35%)  
hsl(260, 20%, 35%)  
hsl(260, 40%, 35%)  
hsl(260, 60%, 35%)  
hsl(260, 80%, 35%)  
hsl(260, 100%, 35%)  

#4a2e84 Color Usage In CSS

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