Random Color Generator

#a842fd Color

Color Codes
Hex Code #a842fd
RGB Code rgb(168, 66, 253)
HSL Code hsl(273, 98%, 63%)

#a842fd Color Syntax

rgb()

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

 main {
    background-color: rgb(168, 66, 253);
   }

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(273, 98%, 63%);
  }

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

RGB Code Hex Code Preview
rgb(168, 66, 253, 10%) #a842fd1a  
rgb(168, 66, 253, 20%) #a842fd33  
rgb(168, 66, 253, 40%) #a842fd4C  
rgb(168, 66, 253, 60%) #a842fd99  
rgb(168, 66, 253, 80%) #a842fdCC  
rgb(168, 66, 253, 100%) #a842fdFF  

Saturated and desaturated colors of #a842fd

HSL Code Preview
hsl(273, 10%, 63%)  
hsl(273, 20%, 63%)  
hsl(273, 40%, 63%)  
hsl(273, 60%, 63%)  
hsl(273, 80%, 63%)  
hsl(273, 100%, 63%)  

#a842fd Color Usage In CSS

 body {
    color: #a842fd;
    }
 p {
    color: rgb(168, 66, 253);
    }
 header {
    border-bottom:1px solid #a842fd;
    }
Recent Random Colors