Random Color Generator

#4a0d48 Color

Color Codes
Hex Code #4a0d48
RGB Code rgb(74, 13, 72)
HSL Code hsl(302, 70%, 17%)

#4a0d48 Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 13, 72);
   }

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(302, 70%, 17%);
  }

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

RGB Code Hex Code Preview
rgb(74, 13, 72, 10%) #4a0d481a  
rgb(74, 13, 72, 20%) #4a0d4833  
rgb(74, 13, 72, 40%) #4a0d484C  
rgb(74, 13, 72, 60%) #4a0d4899  
rgb(74, 13, 72, 80%) #4a0d48CC  
rgb(74, 13, 72, 100%) #4a0d48FF  

Saturated and desaturated colors of #4a0d48

HSL Code Preview
hsl(302, 10%, 17%)  
hsl(302, 20%, 17%)  
hsl(302, 40%, 17%)  
hsl(302, 60%, 17%)  
hsl(302, 80%, 17%)  
hsl(302, 100%, 17%)  

#4a0d48 Color Usage In CSS

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