Random Color Generator

#f0838d Color

Color Codes
Hex Code #f0838d
RGB Code rgb(240, 131, 141)
HSL Code hsl(354, 78%, 73%)

#f0838d Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 131, 141);
   }

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(354, 78%, 73%);
  }

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

RGB Code Hex Code Preview
rgb(240, 131, 141, 10%) #f0838d1a  
rgb(240, 131, 141, 20%) #f0838d33  
rgb(240, 131, 141, 40%) #f0838d4C  
rgb(240, 131, 141, 60%) #f0838d99  
rgb(240, 131, 141, 80%) #f0838dCC  
rgb(240, 131, 141, 100%) #f0838dFF  

Saturated and desaturated colors of #f0838d

HSL Code Preview
hsl(354, 10%, 73%)  
hsl(354, 20%, 73%)  
hsl(354, 40%, 73%)  
hsl(354, 60%, 73%)  
hsl(354, 80%, 73%)  
hsl(354, 100%, 73%)  

#f0838d Color Usage In CSS

 body {
    color: #f0838d;
    }
 p {
    color: rgb(240, 131, 141);
    }
 header {
    border-bottom:1px solid #f0838d;
    }
Recent Random Colors