Random Color Generator

#af1e50 Color

Color Codes
Hex Code #af1e50
RGB Code rgb(175, 30, 80)
HSL Code hsl(339, 71%, 40%)

#af1e50 Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 30, 80);
   }

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(339, 71%, 40%);
  }

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

RGB Code Hex Code Preview
rgb(175, 30, 80, 10%) #af1e501a  
rgb(175, 30, 80, 20%) #af1e5033  
rgb(175, 30, 80, 40%) #af1e504C  
rgb(175, 30, 80, 60%) #af1e5099  
rgb(175, 30, 80, 80%) #af1e50CC  
rgb(175, 30, 80, 100%) #af1e50FF  

Saturated and desaturated colors of #af1e50

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

#af1e50 Color Usage In CSS

 body {
    color: #af1e50;
    }
 p {
    color: rgb(175, 30, 80);
    }
 header {
    border-bottom:1px solid #af1e50;
    }
Recent Random Colors