Random Color Generator

#af26ae Color

Color Codes
Hex Code #af26ae
RGB Code rgb(175, 38, 174)
HSL Code hsl(300, 64%, 42%)

#af26ae Color Syntax

rgb()

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

 main {
    background-color: rgb(175, 38, 174);
   }

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(300, 64%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(175, 38, 174, 10%) #af26ae1a  
rgb(175, 38, 174, 20%) #af26ae33  
rgb(175, 38, 174, 40%) #af26ae4C  
rgb(175, 38, 174, 60%) #af26ae99  
rgb(175, 38, 174, 80%) #af26aeCC  
rgb(175, 38, 174, 100%) #af26aeFF  

Saturated and desaturated colors of #af26ae

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

#af26ae Color Usage In CSS

 body {
    color: #af26ae;
    }
 p {
    color: rgb(175, 38, 174);
    }
 header {
    border-bottom:1px solid #af26ae;
    }
Recent Random Colors