Random Color Generator

#f0dd6b Color

Color Codes
Hex Code #f0dd6b
RGB Code rgb(240, 221, 107)
HSL Code hsl(51, 82%, 68%)

#f0dd6b Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 221, 107);
   }

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(51, 82%, 68%);
  }

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

RGB Code Hex Code Preview
rgb(240, 221, 107, 10%) #f0dd6b1a  
rgb(240, 221, 107, 20%) #f0dd6b33  
rgb(240, 221, 107, 40%) #f0dd6b4C  
rgb(240, 221, 107, 60%) #f0dd6b99  
rgb(240, 221, 107, 80%) #f0dd6bCC  
rgb(240, 221, 107, 100%) #f0dd6bFF  

Saturated and desaturated colors of #f0dd6b

HSL Code Preview
hsl(51, 10%, 68%)  
hsl(51, 20%, 68%)  
hsl(51, 40%, 68%)  
hsl(51, 60%, 68%)  
hsl(51, 80%, 68%)  
hsl(51, 100%, 68%)  

#f0dd6b Color Usage In CSS

 body {
    color: #f0dd6b;
    }
 p {
    color: rgb(240, 221, 107);
    }
 header {
    border-bottom:1px solid #f0dd6b;
    }
Recent Random Colors