Random Color Generator

#4a3457 Color

Color Codes
Hex Code #4a3457
RGB Code rgb(74, 52, 87)
HSL Code hsl(278, 25%, 27%)

#4a3457 Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 52, 87);
   }

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(278, 25%, 27%);
  }

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

RGB Code Hex Code Preview
rgb(74, 52, 87, 10%) #4a34571a  
rgb(74, 52, 87, 20%) #4a345733  
rgb(74, 52, 87, 40%) #4a34574C  
rgb(74, 52, 87, 60%) #4a345799  
rgb(74, 52, 87, 80%) #4a3457CC  
rgb(74, 52, 87, 100%) #4a3457FF  

Saturated and desaturated colors of #4a3457

HSL Code Preview
hsl(278, 10%, 27%)  
hsl(278, 20%, 27%)  
hsl(278, 40%, 27%)  
hsl(278, 60%, 27%)  
hsl(278, 80%, 27%)  
hsl(278, 100%, 27%)  

#4a3457 Color Usage In CSS

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