Random Color Generator

#40246a Color

Color Codes
Hex Code #40246a
RGB Code rgb(64, 36, 106)
HSL Code hsl(264, 49%, 28%)

#40246a Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 36, 106);
   }

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(264, 49%, 28%);
  }

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 #40246a

RGB Code Hex Code Preview
rgb(64, 36, 106, 10%) #40246a1a  
rgb(64, 36, 106, 20%) #40246a33  
rgb(64, 36, 106, 40%) #40246a4C  
rgb(64, 36, 106, 60%) #40246a99  
rgb(64, 36, 106, 80%) #40246aCC  
rgb(64, 36, 106, 100%) #40246aFF  

Saturated and desaturated colors of #40246a

HSL Code Preview
hsl(264, 10%, 28%)  
hsl(264, 20%, 28%)  
hsl(264, 40%, 28%)  
hsl(264, 60%, 28%)  
hsl(264, 80%, 28%)  
hsl(264, 100%, 28%)  

#40246a Color Usage In CSS

 body {
    color: #40246a;
    }
 p {
    color: rgb(64, 36, 106);
    }
 header {
    border-bottom:1px solid #40246a;
    }
Recent Random Colors