Random Color Generator

#f2d95e Color

Color Codes
Hex Code #f2d95e
RGB Code rgb(242, 217, 94)
HSL Code hsl(50, 85%, 66%)

#f2d95e Color Syntax

rgb()

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

 main {
    background-color: rgb(242, 217, 94);
   }

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(50, 85%, 66%);
  }

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

RGB Code Hex Code Preview
rgb(242, 217, 94, 10%) #f2d95e1a  
rgb(242, 217, 94, 20%) #f2d95e33  
rgb(242, 217, 94, 40%) #f2d95e4C  
rgb(242, 217, 94, 60%) #f2d95e99  
rgb(242, 217, 94, 80%) #f2d95eCC  
rgb(242, 217, 94, 100%) #f2d95eFF  

Saturated and desaturated colors of #f2d95e

HSL Code Preview
hsl(50, 10%, 66%)  
hsl(50, 20%, 66%)  
hsl(50, 40%, 66%)  
hsl(50, 60%, 66%)  
hsl(50, 80%, 66%)  
hsl(50, 100%, 66%)  

#f2d95e Color Usage In CSS

 body {
    color: #f2d95e;
    }
 p {
    color: rgb(242, 217, 94);
    }
 header {
    border-bottom:1px solid #f2d95e;
    }
Recent Random Colors