Random Color Generator

#f0f256 Color

Color Codes
Hex Code #f0f256
RGB Code rgb(240, 242, 86)
HSL Code hsl(61, 86%, 64%)

#f0f256 Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 242, 86);
   }

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(61, 86%, 64%);
  }

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

RGB Code Hex Code Preview
rgb(240, 242, 86, 10%) #f0f2561a  
rgb(240, 242, 86, 20%) #f0f25633  
rgb(240, 242, 86, 40%) #f0f2564C  
rgb(240, 242, 86, 60%) #f0f25699  
rgb(240, 242, 86, 80%) #f0f256CC  
rgb(240, 242, 86, 100%) #f0f256FF  

Saturated and desaturated colors of #f0f256

HSL Code Preview
hsl(61, 10%, 64%)  
hsl(61, 20%, 64%)  
hsl(61, 40%, 64%)  
hsl(61, 60%, 64%)  
hsl(61, 80%, 64%)  
hsl(61, 100%, 64%)  

#f0f256 Color Usage In CSS

 body {
    color: #f0f256;
    }
 p {
    color: rgb(240, 242, 86);
    }
 header {
    border-bottom:1px solid #f0f256;
    }
Recent Random Colors