Random Color Generator

#bafa2b Color

Color Codes
Hex Code #bafa2b
RGB Code rgb(186, 250, 43)
HSL Code hsl(79, 95%, 57%)

#bafa2b Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 250, 43);
   }

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(79, 95%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(186, 250, 43, 10%) #bafa2b1a  
rgb(186, 250, 43, 20%) #bafa2b33  
rgb(186, 250, 43, 40%) #bafa2b4C  
rgb(186, 250, 43, 60%) #bafa2b99  
rgb(186, 250, 43, 80%) #bafa2bCC  
rgb(186, 250, 43, 100%) #bafa2bFF  

Saturated and desaturated colors of #bafa2b

HSL Code Preview
hsl(79, 10%, 57%)  
hsl(79, 20%, 57%)  
hsl(79, 40%, 57%)  
hsl(79, 60%, 57%)  
hsl(79, 80%, 57%)  
hsl(79, 100%, 57%)  

#bafa2b Color Usage In CSS

 body {
    color: #bafa2b;
    }
 p {
    color: rgb(186, 250, 43);
    }
 header {
    border-bottom:1px solid #bafa2b;
    }
Recent Random Colors