Random Color Generator

#331c48 Color

Color Codes
Hex Code #331c48
RGB Code rgb(51, 28, 72)
HSL Code hsl(271, 44%, 20%)

#331c48 Color Syntax

rgb()

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

 main {
    background-color: rgb(51, 28, 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(271, 44%, 20%);
  }

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 #331c48

RGB Code Hex Code Preview
rgb(51, 28, 72, 10%) #331c481a  
rgb(51, 28, 72, 20%) #331c4833  
rgb(51, 28, 72, 40%) #331c484C  
rgb(51, 28, 72, 60%) #331c4899  
rgb(51, 28, 72, 80%) #331c48CC  
rgb(51, 28, 72, 100%) #331c48FF  

Saturated and desaturated colors of #331c48

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

#331c48 Color Usage In CSS

 body {
    color: #331c48;
    }
 p {
    color: rgb(51, 28, 72);
    }
 header {
    border-bottom:1px solid #331c48;
    }
Recent Random Colors