Random Color Generator

#f5e71f Color

Color Codes
Hex Code #f5e71f
RGB Code rgb(245, 231, 31)
HSL Code hsl(56, 91%, 54%)

#f5e71f Color Syntax

rgb()

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

 main {
    background-color: rgb(245, 231, 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(56, 91%, 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 #f5e71f

RGB Code Hex Code Preview
rgb(245, 231, 31, 10%) #f5e71f1a  
rgb(245, 231, 31, 20%) #f5e71f33  
rgb(245, 231, 31, 40%) #f5e71f4C  
rgb(245, 231, 31, 60%) #f5e71f99  
rgb(245, 231, 31, 80%) #f5e71fCC  
rgb(245, 231, 31, 100%) #f5e71fFF  

Saturated and desaturated colors of #f5e71f

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

#f5e71f Color Usage In CSS

 body {
    color: #f5e71f;
    }
 p {
    color: rgb(245, 231, 31);
    }
 header {
    border-bottom:1px solid #f5e71f;
    }
Recent Random Colors