Random Color Generator

#8158ee Color

Color Codes
Hex Code #8158ee
RGB Code rgb(129, 88, 238)
HSL Code hsl(256, 82%, 64%)

#8158ee Color Syntax

rgb()

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

 main {
    background-color: rgb(129, 88, 238);
   }

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(256, 82%, 64%);
  }

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 #8158ee

RGB Code Hex Code Preview
rgb(129, 88, 238, 10%) #8158ee1a  
rgb(129, 88, 238, 20%) #8158ee33  
rgb(129, 88, 238, 40%) #8158ee4C  
rgb(129, 88, 238, 60%) #8158ee99  
rgb(129, 88, 238, 80%) #8158eeCC  
rgb(129, 88, 238, 100%) #8158eeFF  

Saturated and desaturated colors of #8158ee

HSL Code Preview
hsl(256, 10%, 64%)  
hsl(256, 20%, 64%)  
hsl(256, 40%, 64%)  
hsl(256, 60%, 64%)  
hsl(256, 80%, 64%)  
hsl(256, 100%, 64%)  

#8158ee Color Usage In CSS

 body {
    color: #8158ee;
    }
 p {
    color: rgb(129, 88, 238);
    }
 header {
    border-bottom:1px solid #8158ee;
    }
Recent Random Colors