Random Color Generator

#af4eb6 Color

Color Codes
Hex Code #af4eb6
RGB Code rgb(175, 78, 182)
HSL Code hsl(296, 42%, 51%)

#af4eb6 Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 78, 182);
   }

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, 42%, 51%);
  }

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

RGB Code Hex Code Preview
rgb(175, 78, 182, 10%) #af4eb61a  
rgb(175, 78, 182, 20%) #af4eb633  
rgb(175, 78, 182, 40%) #af4eb64C  
rgb(175, 78, 182, 60%) #af4eb699  
rgb(175, 78, 182, 80%) #af4eb6CC  
rgb(175, 78, 182, 100%) #af4eb6FF  

Saturated and desaturated colors of #af4eb6

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

#af4eb6 Color Usage In CSS

 body {
    color: #af4eb6;
    }
 p {
    color: rgb(175, 78, 182);
    }
 header {
    border-bottom:1px solid #af4eb6;
    }
Recent Random Colors