Random Color Generator

#157b5c Color

Color Codes
Hex Code #157b5c
RGB Code rgb(21, 123, 92)
HSL Code hsl(162, 71%, 28%)

#157b5c Color Syntax

rgb()

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

 main {
    background-color: rgb(21, 123, 92);
   }

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(162, 71%, 28%);
  }

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 #157b5c

RGB Code Hex Code Preview
rgb(21, 123, 92, 10%) #157b5c1a  
rgb(21, 123, 92, 20%) #157b5c33  
rgb(21, 123, 92, 40%) #157b5c4C  
rgb(21, 123, 92, 60%) #157b5c99  
rgb(21, 123, 92, 80%) #157b5cCC  
rgb(21, 123, 92, 100%) #157b5cFF  

Saturated and desaturated colors of #157b5c

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

#157b5c Color Usage In CSS

 body {
    color: #157b5c;
    }
 p {
    color: rgb(21, 123, 92);
    }
 header {
    border-bottom:1px solid #157b5c;
    }
Recent Random Colors