Random Color Generator

#baf21f Color

Color Codes
Hex Code #baf21f
RGB Code rgb(186, 242, 31)
HSL Code hsl(76, 89%, 54%)

#baf21f Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 242, 31);
   }

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(76, 89%, 54%);
  }

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

RGB Code Hex Code Preview
rgb(186, 242, 31, 10%) #baf21f1a  
rgb(186, 242, 31, 20%) #baf21f33  
rgb(186, 242, 31, 40%) #baf21f4C  
rgb(186, 242, 31, 60%) #baf21f99  
rgb(186, 242, 31, 80%) #baf21fCC  
rgb(186, 242, 31, 100%) #baf21fFF  

Saturated and desaturated colors of #baf21f

HSL Code Preview
hsl(76, 10%, 54%)  
hsl(76, 20%, 54%)  
hsl(76, 40%, 54%)  
hsl(76, 60%, 54%)  
hsl(76, 80%, 54%)  
hsl(76, 100%, 54%)  

#baf21f Color Usage In CSS

 body {
    color: #baf21f;
    }
 p {
    color: rgb(186, 242, 31);
    }
 header {
    border-bottom:1px solid #baf21f;
    }
Recent Random Colors