Random Color Generator

#a871f5 Color

Color Codes
Hex Code #a871f5
RGB Code rgb(168, 113, 245)
HSL Code hsl(265, 87%, 70%)

#a871f5 Color Syntax

rgb()

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

 main {
    background-color: rgb(168, 113, 245);
   }

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(265, 87%, 70%);
  }

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

RGB Code Hex Code Preview
rgb(168, 113, 245, 10%) #a871f51a  
rgb(168, 113, 245, 20%) #a871f533  
rgb(168, 113, 245, 40%) #a871f54C  
rgb(168, 113, 245, 60%) #a871f599  
rgb(168, 113, 245, 80%) #a871f5CC  
rgb(168, 113, 245, 100%) #a871f5FF  

Saturated and desaturated colors of #a871f5

HSL Code Preview
hsl(265, 10%, 70%)  
hsl(265, 20%, 70%)  
hsl(265, 40%, 70%)  
hsl(265, 60%, 70%)  
hsl(265, 80%, 70%)  
hsl(265, 100%, 70%)  

#a871f5 Color Usage In CSS

 body {
    color: #a871f5;
    }
 p {
    color: rgb(168, 113, 245);
    }
 header {
    border-bottom:1px solid #a871f5;
    }
Recent Random Colors