Random Color Generator

#a702f8 Color

Color Codes
Hex Code #a702f8
RGB Code rgb(167, 02, 248)
HSL Code hsl(280, 98%, 49%)

#a702f8 Color Syntax

rgb()

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

 main {
    background-color: rgb(167, 02, 248);
   }

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(280, 98%, 49%);
  }

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

RGB Code Hex Code Preview
rgb(167, 02, 248, 10%) #a702f81a  
rgb(167, 02, 248, 20%) #a702f833  
rgb(167, 02, 248, 40%) #a702f84C  
rgb(167, 02, 248, 60%) #a702f899  
rgb(167, 02, 248, 80%) #a702f8CC  
rgb(167, 02, 248, 100%) #a702f8FF  

Saturated and desaturated colors of #a702f8

HSL Code Preview
hsl(280, 10%, 49%)  
hsl(280, 20%, 49%)  
hsl(280, 40%, 49%)  
hsl(280, 60%, 49%)  
hsl(280, 80%, 49%)  
hsl(280, 100%, 49%)  

#a702f8 Color Usage In CSS

 body {
    color: #a702f8;
    }
 p {
    color: rgb(167, 02, 248);
    }
 header {
    border-bottom:1px solid #a702f8;
    }
Recent Random Colors