Random Color Generator

#b216a7 Color

Color Codes
Hex Code #b216a7
RGB Code rgb(178, 22, 167)
HSL Code hsl(304, 78%, 39%)

#b216a7 Color Syntax

rgb()

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

 main {
    background-color: rgb(178, 22, 167);
   }

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(304, 78%, 39%);
  }

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

RGB Code Hex Code Preview
rgb(178, 22, 167, 10%) #b216a71a  
rgb(178, 22, 167, 20%) #b216a733  
rgb(178, 22, 167, 40%) #b216a74C  
rgb(178, 22, 167, 60%) #b216a799  
rgb(178, 22, 167, 80%) #b216a7CC  
rgb(178, 22, 167, 100%) #b216a7FF  

Saturated and desaturated colors of #b216a7

HSL Code Preview
hsl(304, 10%, 39%)  
hsl(304, 20%, 39%)  
hsl(304, 40%, 39%)  
hsl(304, 60%, 39%)  
hsl(304, 80%, 39%)  
hsl(304, 100%, 39%)  

#b216a7 Color Usage In CSS

 body {
    color: #b216a7;
    }
 p {
    color: rgb(178, 22, 167);
    }
 header {
    border-bottom:1px solid #b216a7;
    }
Recent Random Colors