Random Color Generator

#308175 Color

Color Codes
Hex Code #308175
RGB Code rgb(48, 129, 117)
HSL Code hsl(171, 46%, 35%)

#308175 Color Syntax

rgb()

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

 main {
    background-color: rgb(48, 129, 117);
   }

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(171, 46%, 35%);
  }

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

RGB Code Hex Code Preview
rgb(48, 129, 117, 10%) #3081751a  
rgb(48, 129, 117, 20%) #30817533  
rgb(48, 129, 117, 40%) #3081754C  
rgb(48, 129, 117, 60%) #30817599  
rgb(48, 129, 117, 80%) #308175CC  
rgb(48, 129, 117, 100%) #308175FF  

Saturated and desaturated colors of #308175

HSL Code Preview
hsl(171, 10%, 35%)  
hsl(171, 20%, 35%)  
hsl(171, 40%, 35%)  
hsl(171, 60%, 35%)  
hsl(171, 80%, 35%)  
hsl(171, 100%, 35%)  

#308175 Color Usage In CSS

 body {
    color: #308175;
    }
 p {
    color: rgb(48, 129, 117);
    }
 header {
    border-bottom:1px solid #308175;
    }
Recent Random Colors