Random Color Generator

#340c36 Color

Color Codes
Hex Code #340c36
RGB Code rgb(52, 12, 54)
HSL Code hsl(297, 64%, 13%)

#340c36 Color Syntax

rgb()

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

 main {
    background-color: rgb(52, 12, 54);
   }

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(297, 64%, 13%);
  }

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 #340c36

RGB Code Hex Code Preview
rgb(52, 12, 54, 10%) #340c361a  
rgb(52, 12, 54, 20%) #340c3633  
rgb(52, 12, 54, 40%) #340c364C  
rgb(52, 12, 54, 60%) #340c3699  
rgb(52, 12, 54, 80%) #340c36CC  
rgb(52, 12, 54, 100%) #340c36FF  

Saturated and desaturated colors of #340c36

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

#340c36 Color Usage In CSS

 body {
    color: #340c36;
    }
 p {
    color: rgb(52, 12, 54);
    }
 header {
    border-bottom:1px solid #340c36;
    }
Recent Random Colors