Random Color Generator

#a254fb Color

Color Codes
Hex Code #a254fb
RGB Code rgb(162, 84, 251)
HSL Code hsl(268, 95%, 66%)

#a254fb Color Syntax

rgb()

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

 main {
    background-color: rgb(162, 84, 251);
   }

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(268, 95%, 66%);
  }

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

RGB Code Hex Code Preview
rgb(162, 84, 251, 10%) #a254fb1a  
rgb(162, 84, 251, 20%) #a254fb33  
rgb(162, 84, 251, 40%) #a254fb4C  
rgb(162, 84, 251, 60%) #a254fb99  
rgb(162, 84, 251, 80%) #a254fbCC  
rgb(162, 84, 251, 100%) #a254fbFF  

Saturated and desaturated colors of #a254fb

HSL Code Preview
hsl(268, 10%, 66%)  
hsl(268, 20%, 66%)  
hsl(268, 40%, 66%)  
hsl(268, 60%, 66%)  
hsl(268, 80%, 66%)  
hsl(268, 100%, 66%)  

#a254fb Color Usage In CSS

 body {
    color: #a254fb;
    }
 p {
    color: rgb(162, 84, 251);
    }
 header {
    border-bottom:1px solid #a254fb;
    }
Recent Random Colors