Random Color Generator

#8742f3 Color

Color Codes
Hex Code #8742f3
RGB Code rgb(135, 66, 243)
HSL Code hsl(263, 88%, 61%)

#8742f3 Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 66, 243);
   }

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(263, 88%, 61%);
  }

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 #8742f3

RGB Code Hex Code Preview
rgb(135, 66, 243, 10%) #8742f31a  
rgb(135, 66, 243, 20%) #8742f333  
rgb(135, 66, 243, 40%) #8742f34C  
rgb(135, 66, 243, 60%) #8742f399  
rgb(135, 66, 243, 80%) #8742f3CC  
rgb(135, 66, 243, 100%) #8742f3FF  

Saturated and desaturated colors of #8742f3

HSL Code Preview
hsl(263, 10%, 61%)  
hsl(263, 20%, 61%)  
hsl(263, 40%, 61%)  
hsl(263, 60%, 61%)  
hsl(263, 80%, 61%)  
hsl(263, 100%, 61%)  

#8742f3 Color Usage In CSS

 body {
    color: #8742f3;
    }
 p {
    color: rgb(135, 66, 243);
    }
 header {
    border-bottom:1px solid #8742f3;
    }
Recent Random Colors