Random Color Generator

#af018e Color

Color Codes
Hex Code #af018e
RGB Code rgb(175, 01, 142)
HSL Code hsl(311, 99%, 35%)

#af018e Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 01, 142);
   }

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(311, 99%, 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 #af018e

RGB Code Hex Code Preview
rgb(175, 01, 142, 10%) #af018e1a  
rgb(175, 01, 142, 20%) #af018e33  
rgb(175, 01, 142, 40%) #af018e4C  
rgb(175, 01, 142, 60%) #af018e99  
rgb(175, 01, 142, 80%) #af018eCC  
rgb(175, 01, 142, 100%) #af018eFF  

Saturated and desaturated colors of #af018e

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

#af018e Color Usage In CSS

 body {
    color: #af018e;
    }
 p {
    color: rgb(175, 01, 142);
    }
 header {
    border-bottom:1px solid #af018e;
    }
Recent Random Colors