Random Color Generator

#af75ba Color

Color Codes
Hex Code #af75ba
RGB Code rgb(175, 117, 186)
HSL Code hsl(290, 33%, 59%)

#af75ba Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 117, 186);
   }

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(290, 33%, 59%);
  }

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

RGB Code Hex Code Preview
rgb(175, 117, 186, 10%) #af75ba1a  
rgb(175, 117, 186, 20%) #af75ba33  
rgb(175, 117, 186, 40%) #af75ba4C  
rgb(175, 117, 186, 60%) #af75ba99  
rgb(175, 117, 186, 80%) #af75baCC  
rgb(175, 117, 186, 100%) #af75baFF  

Saturated and desaturated colors of #af75ba

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

#af75ba Color Usage In CSS

 body {
    color: #af75ba;
    }
 p {
    color: rgb(175, 117, 186);
    }
 header {
    border-bottom:1px solid #af75ba;
    }
Recent Random Colors