Random Color Generator

#306552 Color

Color Codes
Hex Code #306552
RGB Code rgb(48, 101, 82)
HSL Code hsl(158, 36%, 29%)

#306552 Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 101, 82);
   }

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(158, 36%, 29%);
  }

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

RGB Code Hex Code Preview
rgb(48, 101, 82, 10%) #3065521a  
rgb(48, 101, 82, 20%) #30655233  
rgb(48, 101, 82, 40%) #3065524C  
rgb(48, 101, 82, 60%) #30655299  
rgb(48, 101, 82, 80%) #306552CC  
rgb(48, 101, 82, 100%) #306552FF  

Saturated and desaturated colors of #306552

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

#306552 Color Usage In CSS

 body {
    color: #306552;
    }
 p {
    color: rgb(48, 101, 82);
    }
 header {
    border-bottom:1px solid #306552;
    }
Recent Random Colors