Random Color Generator

#f012d3 Color

Color Codes
Hex Code #f012d3
RGB Code rgb(240, 18, 211)
HSL Code hsl(308, 88%, 51%)

#f012d3 Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 18, 211);
   }

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(308, 88%, 51%);
  }

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

RGB Code Hex Code Preview
rgb(240, 18, 211, 10%) #f012d31a  
rgb(240, 18, 211, 20%) #f012d333  
rgb(240, 18, 211, 40%) #f012d34C  
rgb(240, 18, 211, 60%) #f012d399  
rgb(240, 18, 211, 80%) #f012d3CC  
rgb(240, 18, 211, 100%) #f012d3FF  

Saturated and desaturated colors of #f012d3

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

#f012d3 Color Usage In CSS

 body {
    color: #f012d3;
    }
 p {
    color: rgb(240, 18, 211);
    }
 header {
    border-bottom:1px solid #f012d3;
    }
Recent Random Colors