Random Color Generator

#af2eb7 Color

Color Codes
Hex Code #af2eb7
RGB Code rgb(175, 46, 183)
HSL Code hsl(296, 60%, 45%)

#af2eb7 Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 46, 183);
   }

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(296, 60%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(175, 46, 183, 10%) #af2eb71a  
rgb(175, 46, 183, 20%) #af2eb733  
rgb(175, 46, 183, 40%) #af2eb74C  
rgb(175, 46, 183, 60%) #af2eb799  
rgb(175, 46, 183, 80%) #af2eb7CC  
rgb(175, 46, 183, 100%) #af2eb7FF  

Saturated and desaturated colors of #af2eb7

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

#af2eb7 Color Usage In CSS

 body {
    color: #af2eb7;
    }
 p {
    color: rgb(175, 46, 183);
    }
 header {
    border-bottom:1px solid #af2eb7;
    }
Recent Random Colors