Random Color Generator

#402632 Color

Color Codes
Hex Code #402632
RGB Code rgb(64, 38, 50)
HSL Code hsl(332, 25%, 20%)

#402632 Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 38, 50);
   }

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(332, 25%, 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 #402632

RGB Code Hex Code Preview
rgb(64, 38, 50, 10%) #4026321a  
rgb(64, 38, 50, 20%) #40263233  
rgb(64, 38, 50, 40%) #4026324C  
rgb(64, 38, 50, 60%) #40263299  
rgb(64, 38, 50, 80%) #402632CC  
rgb(64, 38, 50, 100%) #402632FF  

Saturated and desaturated colors of #402632

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

#402632 Color Usage In CSS

 body {
    color: #402632;
    }
 p {
    color: rgb(64, 38, 50);
    }
 header {
    border-bottom:1px solid #402632;
    }
Recent Random Colors