Random Color Generator

#b225e2 Color

Color Codes
Hex Code #b225e2
RGB Code rgb(178, 37, 226)
HSL Code hsl(285, 77%, 52%)

#b225e2 Color Syntax

rgb()

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

 main {
    background-color: rgb(178, 37, 226);
   }

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(285, 77%, 52%);
  }

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

RGB Code Hex Code Preview
rgb(178, 37, 226, 10%) #b225e21a  
rgb(178, 37, 226, 20%) #b225e233  
rgb(178, 37, 226, 40%) #b225e24C  
rgb(178, 37, 226, 60%) #b225e299  
rgb(178, 37, 226, 80%) #b225e2CC  
rgb(178, 37, 226, 100%) #b225e2FF  

Saturated and desaturated colors of #b225e2

HSL Code Preview
hsl(285, 10%, 52%)  
hsl(285, 20%, 52%)  
hsl(285, 40%, 52%)  
hsl(285, 60%, 52%)  
hsl(285, 80%, 52%)  
hsl(285, 100%, 52%)  

#b225e2 Color Usage In CSS

 body {
    color: #b225e2;
    }
 p {
    color: rgb(178, 37, 226);
    }
 header {
    border-bottom:1px solid #b225e2;
    }
Recent Random Colors