#f124fb Color
Color Codes | |
---|---|
Hex Code | #f124fb |
RGB Code | rgb(241, 36, 251) |
HSL Code | hsl(297, 96%, 56%) |
#f124fb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(241, 36, 251); }
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(297, 96%, 56%); }
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 #f124fb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(241, 36, 251, 10%) | #f124fb1a | |
rgb(241, 36, 251, 20%) | #f124fb33 | |
rgb(241, 36, 251, 40%) | #f124fb4C | |
rgb(241, 36, 251, 60%) | #f124fb99 | |
rgb(241, 36, 251, 80%) | #f124fbCC | |
rgb(241, 36, 251, 100%) | #f124fbFF |
Saturated and desaturated colors of #f124fb
HSL Code | Preview |
---|---|
hsl(297, 10%, 56%) | |
hsl(297, 20%, 56%) | |
hsl(297, 40%, 56%) | |
hsl(297, 60%, 56%) | |
hsl(297, 80%, 56%) | |
hsl(297, 100%, 56%) |
#f124fb Color Usage In CSS
body { color: #f124fb; } p { color: rgb(241, 36, 251); } header { border-bottom:1px solid #f124fb; }