Random Color Generator

#5fa089 Color

Color Codes
Hex Code #5fa089
RGB Code rgb(95, 160, 137)
HSL Code hsl(159, 25%, 50%)

#5fa089 Color Syntax

rgb()

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

 main {
    background-color: rgb(95, 160, 137);
   }

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(159, 25%, 50%);
  }

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 #5fa089

RGB Code Hex Code Preview
rgb(95, 160, 137, 10%) #5fa0891a  
rgb(95, 160, 137, 20%) #5fa08933  
rgb(95, 160, 137, 40%) #5fa0894C  
rgb(95, 160, 137, 60%) #5fa08999  
rgb(95, 160, 137, 80%) #5fa089CC  
rgb(95, 160, 137, 100%) #5fa089FF  

Saturated and desaturated colors of #5fa089

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

#5fa089 Color Usage In CSS

 body {
    color: #5fa089;
    }
 p {
    color: rgb(95, 160, 137);
    }
 header {
    border-bottom:1px solid #5fa089;
    }
Recent Random Colors