Random Color Generator

#a872b5 Color

Color Codes
Hex Code #a872b5
RGB Code rgb(168, 114, 181)
HSL Code hsl(288, 31%, 58%)

#a872b5 Color Syntax

rgb()

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

 main {
    background-color: rgb(168, 114, 181);
   }

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(288, 31%, 58%);
  }

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

RGB Code Hex Code Preview
rgb(168, 114, 181, 10%) #a872b51a  
rgb(168, 114, 181, 20%) #a872b533  
rgb(168, 114, 181, 40%) #a872b54C  
rgb(168, 114, 181, 60%) #a872b599  
rgb(168, 114, 181, 80%) #a872b5CC  
rgb(168, 114, 181, 100%) #a872b5FF  

Saturated and desaturated colors of #a872b5

HSL Code Preview
hsl(288, 10%, 58%)  
hsl(288, 20%, 58%)  
hsl(288, 40%, 58%)  
hsl(288, 60%, 58%)  
hsl(288, 80%, 58%)  
hsl(288, 100%, 58%)  

#a872b5 Color Usage In CSS

 body {
    color: #a872b5;
    }
 p {
    color: rgb(168, 114, 181);
    }
 header {
    border-bottom:1px solid #a872b5;
    }
Recent Random Colors