Random Color Generator

#332871 Color

Color Codes
Hex Code #332871
RGB Code rgb(51, 40, 113)
HSL Code hsl(249, 48%, 30%)

#332871 Color Syntax

rgb()

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

 main {
    background-color: rgb(51, 40, 113);
   }

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(249, 48%, 30%);
  }

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 #332871

RGB Code Hex Code Preview
rgb(51, 40, 113, 10%) #3328711a  
rgb(51, 40, 113, 20%) #33287133  
rgb(51, 40, 113, 40%) #3328714C  
rgb(51, 40, 113, 60%) #33287199  
rgb(51, 40, 113, 80%) #332871CC  
rgb(51, 40, 113, 100%) #332871FF  

Saturated and desaturated colors of #332871

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

#332871 Color Usage In CSS

 body {
    color: #332871;
    }
 p {
    color: rgb(51, 40, 113);
    }
 header {
    border-bottom:1px solid #332871;
    }
Recent Random Colors