Random Color Generator

#42a191 Color

Color Codes
Hex Code #42a191
RGB Code rgb(66, 161, 145)
HSL Code hsl(170, 42%, 45%)

#42a191 Color Syntax

rgb()

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

 main {
    background-color: rgb(66, 161, 145);
   }

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(170, 42%, 45%);
  }

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 #42a191

RGB Code Hex Code Preview
rgb(66, 161, 145, 10%) #42a1911a  
rgb(66, 161, 145, 20%) #42a19133  
rgb(66, 161, 145, 40%) #42a1914C  
rgb(66, 161, 145, 60%) #42a19199  
rgb(66, 161, 145, 80%) #42a191CC  
rgb(66, 161, 145, 100%) #42a191FF  

Saturated and desaturated colors of #42a191

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

#42a191 Color Usage In CSS

 body {
    color: #42a191;
    }
 p {
    color: rgb(66, 161, 145);
    }
 header {
    border-bottom:1px solid #42a191;
    }
Recent Random Colors