Random Color Generator

#802afc Color

Color Codes
Hex Code #802afc
RGB Code rgb(128, 42, 252)
HSL Code hsl(265, 97%, 58%)

#802afc Color Syntax

rgb()

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

 main {
    background-color: rgb(128, 42, 252);
   }

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, 97%, 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 #802afc

RGB Code Hex Code Preview
rgb(128, 42, 252, 10%) #802afc1a  
rgb(128, 42, 252, 20%) #802afc33  
rgb(128, 42, 252, 40%) #802afc4C  
rgb(128, 42, 252, 60%) #802afc99  
rgb(128, 42, 252, 80%) #802afcCC  
rgb(128, 42, 252, 100%) #802afcFF  

Saturated and desaturated colors of #802afc

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

#802afc Color Usage In CSS

 body {
    color: #802afc;
    }
 p {
    color: rgb(128, 42, 252);
    }
 header {
    border-bottom:1px solid #802afc;
    }
Recent Random Colors